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

    Enum Vector3Composite.Mode

    Determines how a Vector3 is synthesized from part controls.

    Namespace: UnityEngine.InputSystem.Composites
    Syntax
    public enum Mode

    Fields

    Name Description Value
    Analog

    Part controls are treated as analog meaning that the floating-point values read from controls will come through as is (minus the fact that the down and left direction values are negated).

    Digital

    Part controls are treated as buttons (on/off) and the resulting vector is not normalized. This means that if both left and up are pressed, for example, the resulting vector is (-1,1,0) and has a length greater than 1.

    DigitalNormalized

    Part controls are treated as buttons (on/off) and the resulting vector is normalized. This means that if, for example, both left and up are pressed, instead of returning a vector (-1,1,0), a vector of roughly (-0.7,0.7,0) (that is, corresponding to new Vector3(-1,1,0).normalized) is returned instead.

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