暫無描述
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.

PhysicsRaycasterEditor.cs 623B

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