docs.unity3d.com
    Show / Hide Table of Contents

    Class InputActionPropertyExtensions

    Extension methods for .

    Inheritance
    Object
    InputActionPropertyExtensions
    Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs
    Syntax
    public static class InputActionPropertyExtensions : object

    Methods

    DisableDirectAction(InputActionProperty)

    Disable the action held on to by the property if it represents an directly, meaning not indirectly with an for an action externally defined in an .

    Declaration
    public static void DisableDirectAction(this InputActionProperty property)
    Parameters
    Type Name Description
    InputActionProperty property

    The property to operate on.

    Remarks

    This can make it easier to allow the enabled state of the serialized with a to be owned by the behavior itself, but let a reference type be managed elsewhere.

    EnableDirectAction(InputActionProperty)

    Enable the action held on to by the property if it represents an directly, meaning not indirectly with an for an action externally defined in an .

    Declaration
    public static void EnableDirectAction(this InputActionProperty property)
    Parameters
    Type Name Description
    InputActionProperty property

    The property to operate on.

    Remarks

    This can make it easier to allow the enabled state of the serialized with a to be owned by the behavior itself, but let a reference type be managed elsewhere.

    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