Class SpatialMenuElement | Unity Reflect | 1.0.0-preview.11
docs.unity3d.com
    Show / Hide Table of Contents

    Class SpatialMenuElement

    Abstract class housing common SpatialMenu element functionality

    Inheritance
    Object
    SpatialMenuElement
    Namespace: UnityEditor.Experimental.EditorVR
    Syntax
    public abstract class SpatialMenuElement : MonoBehaviour, IUsesControlHaptics, IFunctionalitySubscriber<IProvidesControlHaptics>, IFunctionalitySubscriber, IRayEnterHandler, IRayExitHandler, IEventSystemHandler

    Fields

    m_Button

    Declaration
    protected Button m_Button
    Field Value
    Type Description
    Button

    m_CanvasGroup

    Declaration
    protected CanvasGroup m_CanvasGroup
    Field Value
    Type Description
    CanvasGroup

    m_FadeInZOffset

    Declaration
    protected float m_FadeInZOffset
    Field Value
    Type Description
    Single

    m_HighlightedZOffset

    Declaration
    protected float m_HighlightedZOffset
    Field Value
    Type Description
    Single

    m_Icon

    Declaration
    protected Image m_Icon
    Field Value
    Type Description
    Image

    m_Text

    Declaration
    protected TextMeshProUGUI m_Text
    Field Value
    Type Description
    TextMeshProUGUI

    m_TransitionDuration

    Declaration
    protected float m_TransitionDuration
    Field Value
    Type Description
    Single

    Properties

    highlighted

    Bool denoting that this element is currently highlighted

    Declaration
    public virtual bool highlighted { get; set; }
    Property Value
    Type Description
    Boolean

    highlightedAction

    Action performed when this element is highlighted

    Declaration
    public Action<SpatialMenu.SpatialMenuData> highlightedAction { get; set; }
    Property Value
    Type Description
    Action<SpatialMenu.SpatialMenuData>

    hoveringNode

    Declaration
    public Node hoveringNode { get; set; }
    Property Value
    Type Description
    Node

    parentMenuData

    Reference to the data defining the parent menu of this element Used to display certain relevant visual elements relating to the parent menu

    Declaration
    public SpatialMenu.SpatialMenuData parentMenuData { get; set; }
    Property Value
    Type Description
    SpatialMenu.SpatialMenuData

    selected

    Declaration
    public Action<Node> selected { get; set; }
    Property Value
    Type Description
    Action<Node>

    Setup

    Sets up the model and view for this particular element

    Declaration
    public Action<Transform, Action, string, string> Setup { get; set; }
    Property Value
    Type Description
    Action<Transform, Action, String, String>

    spatialMenuActiveControllerNode

    If the menu element isn't being hovered, utilize this node for performing any node-dependent logic

    Declaration
    public Node spatialMenuActiveControllerNode { get; set; }
    Property Value
    Type Description
    Node

    visible

    Bool denoting that this element is currently visible

    Declaration
    public virtual bool visible { get; set; }
    Property Value
    Type Description
    Boolean

    Explicit Interface Implementations

    IFunctionalitySubscriber<IProvidesControlHaptics>.provider

    Declaration
    IProvidesControlHaptics IFunctionalitySubscriber<IProvidesControlHaptics>.provider { get; set; }
    Returns
    Type Description
    IProvidesControlHaptics
    Implements
    IFunctionalitySubscriber<TProvider>.provider

    Extension Methods

    FunctionalitySubscriberMethods.HasProvider<TProvider>(IFunctionalitySubscriber<TProvider>)
    UsesControlHapticsMethods.Pulse(IUsesControlHaptics, Node, HapticPulse, Single, Single)
    UsesControlHapticsMethods.StopPulses(IUsesControlHaptics, Node)
    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