Açıklama Yok
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Physics2DRaycasterEditor.cs 650B

123456789101112131415161718192021
  1. using UnityEngine;
  2. using UnityEngine.EventSystems;
  3. namespace UnityEditor.EventSystems
  4. {
  5. [CustomEditor(typeof(Physics2DRaycaster), true)]
  6. /// <summary>
  7. /// Custom Editor for the EventSystem Component.
  8. /// Extend this class to write a custom editor for a component derived from EventSystem.
  9. /// </summary>
  10. public class Physics2DRaycasterEditor : Editor
  11. {
  12. public override void OnInspectorGUI()
  13. {
  14. base.OnInspectorGUI();
  15. #if !PACKAGE_PHYSICS2D
  16. EditorGUILayout.HelpBox("Physics2D module is not present. This Raycaster will have no effect", MessageType.Warning);
  17. #endif
  18. }
  19. }
  20. }