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

    Class MultipleRayInputModule

    A BaseInputModule designed for mouse / keyboard / controller input.

    Inheritance
    Object
    RayInputModule
    MultipleRayInputModule
    Inherited Members
    RayInputModule.kMouseLeftId
    RayInputModule.kMouseRightId
    RayInputModule.kMouseMiddleId
    RayInputModule.kFakeTouchesId
    RayInputModule.m_RayData
    RayInputModule.rayEntered
    RayInputModule.rayHovering
    RayInputModule.rayExited
    RayInputModule.dragStarted
    RayInputModule.dragEnded
    RayInputModule.IFunctionalitySubscriber<IProvidesViewerScale>.provider
    RayInputModule.GetRayData(Int32, RayEventData, Boolean)
    RayInputModule.RemoveRayData(RayEventData)
    RayInputModule.GetTouchRayEventData(Touch, Boolean, Boolean)
    RayInputModule.CopyFromTo(RayEventData, RayEventData)
    RayInputModule.StateForMouseButton(Int32)
    RayInputModule.GetMouseRayEventData()
    RayInputModule.GetMouseRayEventData(Int32)
    RayInputModule.GetLastRayEventData(Int32)
    RayInputModule.ProcessMove(RayEventData)
    RayInputModule.HandlePointerExitAndEnter(RayEventData, GameObject, Boolean)
    RayInputModule.ProcessDrag(RayEventData, Boolean)
    RayInputModule.OnPointerUp(RayEventData, GameObject)
    RayInputModule.IsPointerOverGameObject(Int32)
    RayInputModule.ClearSelection()
    RayInputModule.ToString()
    RayInputModule.DeselectIfSelectionChanged(GameObject, BaseEventData)
    Namespace: UnityEditor.Experimental.EditorVR.Modules
    Syntax
    public class MultipleRayInputModule : RayInputModule, IUsesViewerScale, IFunctionalitySubscriber<IProvidesViewerScale>, IUsesPointer, IUsesConnectInterfaces, IFunctionalitySubscriber<IProvidesConnectInterfaces>, IProvidesAddRaycastSource, IProvidesIsHoveringOverUI, IUsesFunctionalityInjection, IFunctionalitySubscriber<IProvidesFunctionalityInjection>, IFunctionalitySubscriber, IProvidesBlockUIInteraction, IProvidesUIEvents, IProvidesGetRayEventData, IFunctionalityProvider
    Remarks

    Input module for working with, mouse, keyboard, or controller.

    Properties

    eventCamera

    Declaration
    public Camera eventCamera { get; set; }
    Property Value
    Type Description
    Camera

    forceModuleActive

    Force this module to be active.

    Declaration
    public bool forceModuleActive { get; set; }
    Property Value
    Type Description
    Boolean
    Remarks

    If there is no module active with higher priority (ordered in the inspector) this module will be forced active even if valid enabling conditions are not met.

    inputActionsPerSecond

    Number of keyboard / controller inputs allowed per second.

    Declaration
    public float inputActionsPerSecond { get; set; }
    Property Value
    Type Description
    Single

    layerMask

    Declaration
    public LayerMask layerMask { get; set; }
    Property Value
    Type Description
    LayerMask

    preProcessRaycastSource

    Declaration
    public Action<Transform> preProcessRaycastSource { set; }
    Property Value
    Type Description
    Action<Transform>

    Methods

    ActivateModule()

    See BaseInputModule.

    Declaration
    public override void ActivateModule()

    AddRaycastSource(IProxy, Node, Transform, Func<IRaycastSource, Boolean>)

    Declaration
    public void AddRaycastSource(IProxy proxy, Node node, Transform rayOrigin, Func<IRaycastSource, bool> validationCallback = null)
    Parameters
    Type Name Description
    IProxy proxy
    Node node
    Transform rayOrigin
    Func<IRaycastSource, Boolean> validationCallback

    Awake()

    Declaration
    protected override void Awake()
    Overrides
    RayInputModule.Awake()

    ConnectSubscriber(Object)

    Declaration
    public void ConnectSubscriber(object obj)
    Parameters
    Type Name Description
    Object obj
    Implements
    IFunctionalityProvider.ConnectSubscriber(Object)

    DeactivateModule()

    See BaseInputModule.

    Declaration
    public override void DeactivateModule()

    GetCurrentFocusedGameObject()

    Declaration
    protected GameObject GetCurrentFocusedGameObject()
    Returns
    Type Description
    GameObject

    GetPointerEventData(Transform)

    Declaration
    public RayEventData GetPointerEventData(Transform rayOrigin)
    Parameters
    Type Name Description
    Transform rayOrigin
    Returns
    Type Description
    RayEventData

    IsHoveringOverUI(Transform)

    Declaration
    public bool IsHoveringOverUI(Transform rayOrigin)
    Parameters
    Type Name Description
    Transform rayOrigin
    Returns
    Type Description
    Boolean
    Implements
    IProvidesIsHoveringOverUI.IsHoveringOverUI(Transform)

    IsModuleSupported()

    Declaration
    public override bool IsModuleSupported()
    Returns
    Type Description
    Boolean

    LoadProvider()

    Declaration
    public void LoadProvider()
    Implements
    IFunctionalityProvider.LoadProvider()

    OnDestroy()

    Declaration
    protected override void OnDestroy()

    Process()

    Declaration
    public override void Process()

    ProcessMouseEvent()

    Declaration
    protected void ProcessMouseEvent()

    ProcessMouseEvent(Int32)

    Process all mouse events.

    Declaration
    protected void ProcessMouseEvent(int id)
    Parameters
    Type Name Description
    Int32 id

    ProcessMousePress(RayInputModule.MouseButtonRayEventData)

    Calculate and process any mouse button state changes.

    Declaration
    protected void ProcessMousePress(RayInputModule.MouseButtonRayEventData data)
    Parameters
    Type Name Description
    RayInputModule.MouseButtonRayEventData data

    ProcessTouchPress(RayEventData, Boolean, Boolean)

    This method is called by Unity whenever a touch event is processed. Override this method with a custom implementation to process touch events yourself.

    Declaration
    protected void ProcessTouchPress(RayEventData pointerEvent, bool pressed, bool released)
    Parameters
    Type Name Description
    RayEventData pointerEvent

    Event data relating to the touch event, such as position and ID to be passed to the touch event destination object.

    Boolean pressed

    This is true for the first frame of a touch event, and false thereafter. This can therefore be used to determine the instant a touch event occurred.

    Boolean released

    This is true only for the last frame of a touch event.

    Remarks

    This method can be overridden in derived classes to change how touch press events are handled.

    SendMoveEventToSelectedObject()

    Calculate and send a move event to the current selected object.

    Declaration
    protected bool SendMoveEventToSelectedObject()
    Returns
    Type Description
    Boolean

    If the move event was used by the selected object.

    SendSubmitEventToSelectedObject()

    Calculate and send a submit event to the current selected object.

    Declaration
    protected bool SendSubmitEventToSelectedObject()
    Returns
    Type Description
    Boolean

    If the submit event was used by the selected object.

    SendUpdateEventToSelectedObject()

    Declaration
    protected bool SendUpdateEventToSelectedObject()
    Returns
    Type Description
    Boolean

    SetUIBlockedForRayOrigin(Transform, Boolean)

    Declaration
    public void SetUIBlockedForRayOrigin(Transform rayOrigin, bool blocked)
    Parameters
    Type Name Description
    Transform rayOrigin
    Boolean blocked
    Implements
    IProvidesBlockUIInteraction.SetUIBlockedForRayOrigin(Transform, Boolean)

    ShouldActivateModule()

    Declaration
    public override bool ShouldActivateModule()
    Returns
    Type Description
    Boolean

    ShutDown()

    Declaration
    public void ShutDown()

    UnloadProvider()

    Declaration
    public void UnloadProvider()
    Implements
    IFunctionalityProvider.UnloadProvider()

    UpdateModule()

    Declaration
    public override void UpdateModule()

    Explicit Interface Implementations

    IFunctionalitySubscriber<IProvidesConnectInterfaces>.provider

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

    IFunctionalitySubscriber<IProvidesFunctionalityInjection>.provider

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

    Extension Methods

    IUsesFunctionalityInjectionMethods.InjectFunctionality(IUsesFunctionalityInjection, List<Object>)
    IUsesFunctionalityInjectionMethods.InjectFunctionalitySingle(IUsesFunctionalityInjection, Object)
    IUsesFunctionalityInjectionMethods.InjectPreparedFunctionality(IUsesFunctionalityInjection, List<Object>)
    UsesConnectInterfacesMethods.ConnectInterfaces(IUsesConnectInterfaces, Object, Object)
    UsesConnectInterfacesMethods.DisconnectInterfaces(IUsesConnectInterfaces, Object, Object)
    UsesViewerScaleMethods.GetViewerScale(IUsesViewerScale)
    UsesViewerScaleMethods.SetViewerScale(IUsesViewerScale, Single)
    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