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

    Class ControlScheme

    Inheritance
    Object
    ControlScheme
    Namespace: UnityEngine.InputNew
    Syntax
    [Serializable]
    public class ControlScheme

    Constructors

    ControlScheme()

    Declaration
    public ControlScheme()

    ControlScheme(String, ActionMap)

    Declaration
    public ControlScheme(string name, ActionMap actionMap)
    Parameters
    Type Name Description
    String name
    ActionMap actionMap

    Properties

    actionMap

    Declaration
    public ActionMap actionMap { get; }
    Property Value
    Type Description
    ActionMap

    bindings

    Declaration
    public List<ControlBinding> bindings { get; set; }
    Property Value
    Type Description
    List<ControlBinding>

    customized

    Declaration
    public bool customized { get; }
    Property Value
    Type Description
    Boolean

    deviceSlots

    Declaration
    public List<DeviceSlot> deviceSlots { get; set; }
    Property Value
    Type Description
    List<DeviceSlot>

    name

    Declaration
    public string name { get; set; }
    Property Value
    Type Description
    String

    Methods

    Clone()

    Declaration
    public virtual ControlScheme Clone()
    Returns
    Type Description
    ControlScheme

    ExtractDeviceTypesAndControlIndices(Dictionary<Int32, List<Int32>>)

    Declaration
    public void ExtractDeviceTypesAndControlIndices(Dictionary<int, List<int>> controlIndicesPerDeviceType)
    Parameters
    Type Name Description
    Dictionary<Int32, List<Int32>> controlIndicesPerDeviceType

    GetDeviceKey(InputDevice)

    Declaration
    public int GetDeviceKey(InputDevice device)
    Parameters
    Type Name Description
    InputDevice device
    Returns
    Type Description
    Int32

    GetDeviceSlot(Int32)

    Declaration
    public DeviceSlot GetDeviceSlot(int key)
    Parameters
    Type Name Description
    Int32 key
    Returns
    Type Description
    DeviceSlot
    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