docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetControllerState

    GetControllerState(out XRControllerState)

    Gets the state of the controller while playing or recording.

    Declaration
    public virtual bool GetControllerState(out XRControllerState controllerState)
    Parameters
    Type Name Description
    XRControllerState controllerState

    When this method returns, contains the XRControllerState object representing the state of the controller.

    Returns
    Type Description
    bool

    Returns true when playing or recording. Otherwise, returns false.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)