Class RaycastReceiverEditor
Editor class used to edit RaycastReceiver components. Extend this class to write your own raycast receiver editor.
Inherited Members
Editor.MoveNextTarget()
Object.MemberwiseClone()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.FindObjectsByType<T>()
Object.FindObjectsByType<T>(FindObjectsInactive)
Namespace: UnityEditor.UI
Assembly: UnityEditor.UI.dll
Syntax
[CustomEditor(typeof(RaycastReceiver), false)]
[CanEditMultipleObjects]
public class RaycastReceiverEditor : Editor
Fields
m_RaycastPadding
Serialized property for the padding (Vector4) applied to the raycast target.
Declaration
protected SerializedProperty m_RaycastPadding
Field Value
| Type | Description |
|---|---|
| SerializedProperty |
m_RaycastTarget
Serialized property for the target graphic component used for raycasting.
Declaration
protected SerializedProperty m_RaycastTarget
Field Value
| Type | Description |
|---|---|
| SerializedProperty |
m_Script
Serialized property representing the script reference.
Declaration
protected SerializedProperty m_Script
Field Value
| Type | Description |
|---|---|
| SerializedProperty |
Methods
CreateInspectorGUI()
Implementation of Editor.CreateInspectorGUI to create a UIElements-based inspector.
Declaration
public override VisualElement CreateInspectorGUI()
Returns
| Type | Description |
|---|---|
| VisualElement | The root VisualElement containing the custom inspector UI. |
Overrides
OnDisable()
Called when the object goes out of scope. Unsubscribes from the SceneView.duringSceneGui event.
Declaration
protected virtual void OnDisable()
OnEnable()
Called when the object is loaded. Initializes serialized properties and subscribes to the SceneView.duringSceneGui event.
Declaration
protected virtual void OnEnable()