Class RaycastReceiverEditor
Editor class used to edit RaycastReceiver components. Extend this class to write your own raycast receiver editor.
Inherited Members
Editor.SaveChanges()
Editor.DiscardChanges()
Editor.CreateEditor(Object)
Editor.CreateEditor(Object[])
Editor.DrawDefaultInspector()
Editor.Repaint()
Editor.OnInspectorGUI()
Editor.RequiresConstantRepaint()
Editor.DrawHeader()
Editor.ShouldHideOpenButton()
Editor.HasPreviewGUI()
Editor.CreatePreview(VisualElement)
Editor.GetPreviewTitle()
Editor.OnPreviewGUI(Rect, GUIStyle)
Editor.OnInteractivePreviewGUI(Rect, GUIStyle)
Editor.OnPreviewSettings()
Editor.GetInfoString()
Editor.DrawPreview(Rect)
Editor.UseDefaultMargins()
Editor.MoveNextTarget()
Editor.hasUnsavedChanges
Editor.saveChangesMessage
Editor.target
Editor.targets
Editor.serializedObject
Object.GetEntityId()
Object.MemberwiseClone()
Object.GetInstanceID()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
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)
Object.ToString()
Object.name
Object.hideFlags
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
UnityEditor.Editor.CreateInspectorGUI()
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()