docs.unity3d.com
    目次を表示する/隠す

    Class InputActionPropertyExtensions

    Extension methods for InputActionProperty.

    Inheritance
    Object
    InputActionPropertyExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs
    Syntax
    public static class InputActionPropertyExtensions

    Methods

    DisableDirectAction(InputActionProperty)

    Disable the action held on to by the property only if it represents an InputAction directly. In other words, function will do nothing if the action has a non-null reference property.

    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 InputAction serialized with a MonoBehaviour 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 only if it represents an InputAction directly. In other words, function will do nothing if the action has a non-null reference property.

    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 InputAction serialized with a MonoBehaviour to be owned by the behavior itself, but let a reference type be managed elsewhere.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)