暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }