Singularity/Library/PackageCache/com.unity.ugui@1.0.0/Editor/EventSystem/PhysicsRaycasterEditor.cs

21 lines
623 B
C#
Raw Permalink Normal View History

2024-05-06 14:45:45 -04:00
using UnityEngine.EventSystems;
namespace UnityEditor.EventSystems
{
[CustomEditor(typeof(PhysicsRaycaster), true)]
/// <summary>
/// Custom Editor for the EventSystem Component.
/// Extend this class to write a custom editor for a component derived from EventSystem.
/// </summary>
public class PhysicsRaycasterEditor : Editor
{
public override void OnInspectorGUI()
{
base.OnInspectorGUI();
#if !PACKAGE_PHYSICS
EditorGUILayout.HelpBox("Physics module is not present. This Raycaster will have no effect", MessageType.Warning);
#endif
}
}
}