docs.unity3d.com
    Show / Hide Table of Contents

    Class ARPlacementInteractableEditor

    Custom editor for an ARPlacementInteractable.

    Inheritance
    Object
    BaseInteractionEditor
    XRBaseInteractableEditor
    ARBaseGestureInteractableEditor
    ARPlacementInteractableEditor
    Inherited Members
    ARBaseGestureInteractableEditor.m_ARSessionOrigin
    XRBaseInteractableEditor.m_InteractionManager
    XRBaseInteractableEditor.m_Colliders
    XRBaseInteractableEditor.m_InteractionLayerMask
    XRBaseInteractableEditor.m_CustomReticle
    XRBaseInteractableEditor.m_FirstHoverEntered
    XRBaseInteractableEditor.m_LastHoverExited
    XRBaseInteractableEditor.m_HoverEntered
    XRBaseInteractableEditor.m_HoverExited
    XRBaseInteractableEditor.m_SelectEntered
    XRBaseInteractableEditor.m_SelectExited
    XRBaseInteractableEditor.m_Activated
    XRBaseInteractableEditor.m_Deactivated
    XRBaseInteractableEditor.m_OnFirstHoverEntered
    XRBaseInteractableEditor.m_OnLastHoverExited
    XRBaseInteractableEditor.m_OnHoverEntered
    XRBaseInteractableEditor.m_OnHoverExited
    XRBaseInteractableEditor.m_OnSelectEntered
    XRBaseInteractableEditor.m_OnSelectExited
    XRBaseInteractableEditor.m_OnSelectCanceled
    XRBaseInteractableEditor.m_OnActivate
    XRBaseInteractableEditor.m_OnDeactivate
    XRBaseInteractableEditor.m_OnFirstHoverEnteredCalls
    XRBaseInteractableEditor.m_OnLastHoverExitedCalls
    XRBaseInteractableEditor.m_OnHoverEnteredCalls
    XRBaseInteractableEditor.m_OnHoverExitedCalls
    XRBaseInteractableEditor.m_OnSelectEnteredCalls
    XRBaseInteractableEditor.m_OnSelectExitedCalls
    XRBaseInteractableEditor.m_OnSelectCanceledCalls
    XRBaseInteractableEditor.m_OnActivateCalls
    XRBaseInteractableEditor.m_OnDeactivateCalls
    XRBaseInteractableEditor.DrawInspector()
    XRBaseInteractableEditor.DrawBeforeProperties()
    XRBaseInteractableEditor.DrawEvents()
    XRBaseInteractableEditor.DrawCoreConfiguration()
    XRBaseInteractableEditor.DrawInteractionManagement()
    XRBaseInteractableEditor.DrawInteractableEvents()
    XRBaseInteractableEditor.MigrateEvents(Object[])
    BaseInteractionEditor.knownSerializedPropertyNames
    BaseInteractionEditor.OnInspectorGUI()
    BaseInteractionEditor.InitializeKnownSerializedPropertyNames()
    BaseInteractionEditor.GetDerivedSerializedPropertyNames()
    BaseInteractionEditor.DrawDerivedProperties()
    BaseInteractionEditor.DrawScript()
    Namespace: UnityEditor.XR.Interaction.Toolkit.AR
    Syntax
    public class ARPlacementInteractableEditor : ARBaseGestureInteractableEditor

    Fields

    m_FallbackLayerMask

    of the backing fallbackLayerMask.

    Declaration
    protected SerializedProperty m_FallbackLayerMask
    Field Value
    Type Description
    SerializedProperty

    m_ObjectPlaced

    of the backing objectPlaced.

    Declaration
    protected SerializedProperty m_ObjectPlaced
    Field Value
    Type Description
    SerializedProperty

    m_OnObjectPlaced

    of the backing onObjectPlaced.

    Declaration
    protected SerializedProperty m_OnObjectPlaced
    Field Value
    Type Description
    SerializedProperty

    m_OnObjectPlacedCalls

    of the persistent calls backing onObjectPlaced.

    Declaration
    protected SerializedProperty m_OnObjectPlacedCalls
    Field Value
    Type Description
    SerializedProperty

    m_PlacementPrefab

    of the backing placementPrefab.

    Declaration
    protected SerializedProperty m_PlacementPrefab
    Field Value
    Type Description
    SerializedProperty

    Methods

    DrawInteractableEventsNested()

    Draw the nested contents of the Interactable Events foldout.

    Declaration
    protected override void DrawInteractableEventsNested()
    Overrides
    XRBaseInteractableEditor.DrawInteractableEventsNested()
    See Also
    DrawInteractableEvents()

    DrawProperties()

    This method is automatically called by DrawInspector() to draw the property fields. Override this method to customize the properties shown in the Inspector. This is typically the method overridden when a derived behavior adds additional serialized properties that should be displayed in the Inspector.

    Declaration
    protected override void DrawProperties()
    Overrides
    ARBaseGestureInteractableEditor.DrawProperties()

    IsDeprecatedEventsInUse()

    Get whether deprecated events are in use.

    Declaration
    protected override bool IsDeprecatedEventsInUse()
    Returns
    Type Description
    Boolean

    Returns true if deprecated events are in use. Otherwise, returns false.

    Overrides
    XRBaseInteractableEditor.IsDeprecatedEventsInUse()

    MigrateEvents(SerializedObject)

    Migrate the persistent listeners from the deprecated properties to the new events on an XRBaseInteractable.

    Declaration
    protected override void MigrateEvents(SerializedObject serializedObject)
    Parameters
    Type Name Description
    SerializedObject serializedObject

    The object to upgrade.

    Overrides
    XRBaseInteractableEditor.MigrateEvents(SerializedObject)
    Remarks

    Assumes On Select Exited should be migrated to Select Exited even though it will now be invoked even when canceled. On Select Canceled is skipped since it can't be migrated.

    OnEnable()

    This function is called when the object becomes enabled and active.

    Declaration
    protected override void OnEnable()
    Overrides
    ARBaseGestureInteractableEditor.OnEnable()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023