Abstract class housing common SpatialMenu element functionality
Inheritance
SpatialMenuElement
public abstract class SpatialMenuElement : MonoBehaviour, IUsesControlHaptics, IFunctionalitySubscriber<IProvidesControlHaptics>, IFunctionalitySubscriber, IRayEnterHandler, IRayExitHandler, IEventSystemHandler
Fields
Declaration
protected Button m_Button
Field Value
Declaration
protected CanvasGroup m_CanvasGroup
Field Value
Type |
Description |
CanvasGroup |
|
Declaration
protected float m_FadeInZOffset
Field Value
Declaration
protected float m_HighlightedZOffset
Field Value
Declaration
Field Value
Declaration
protected TextMeshProUGUI m_Text
Field Value
Type |
Description |
TextMeshProUGUI |
|
Declaration
protected float m_TransitionDuration
Field Value
Properties
Bool denoting that this element is currently highlighted
Declaration
public virtual bool highlighted { get; set; }
Property Value
Action performed when this element is highlighted
Declaration
public Action<SpatialMenu.SpatialMenuData> highlightedAction { get; set; }
Property Value
Declaration
public Node hoveringNode { get; set; }
Property Value
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
Declaration
public Action<Node> selected { get; set; }
Property Value
Sets up the model and view for this particular element
Declaration
public Action<Transform, Action, string, string> Setup { get; set; }
Property Value
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
Bool denoting that this element is currently visible
Declaration
public virtual bool visible { get; set; }
Property Value
Explicit Interface Implementations
Declaration
IProvidesControlHaptics IFunctionalitySubscriber<IProvidesControlHaptics>.provider { get; set; }
Returns
Implements
Extension Methods