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

    Delegate InputDeviceFindControlLayoutDelegate

    Delegate used by onFindLayoutForDevice.

    Namespace: UnityEngine.InputSystem.Layouts
    Syntax
    public delegate string InputDeviceFindControlLayoutDelegate(ref InputDeviceDescription description, string matchedLayout, InputDeviceExecuteCommandDelegate executeDeviceCommand);
    Parameters
    Type Name Description
    InputDeviceDescription description

    The device description supplied by the runtime or through AddDevice(InputDeviceDescription). This is passed by reference instead of by value to allow the callback to fill out fields such as capabilities on the fly based on information queried from external APIs or from the runtime.

    String matchedLayout

    Name of the layout that has been selected for the device or null if no matching layout could be found. Matching is determined from the InputDeviceMatchers for layouts registered in the system.

    InputDeviceExecuteCommandDelegate executeDeviceCommand

    A delegate which can be invoked to execute InputDeviceCommands on the device.

    Returns
    Type Description
    String

    Return null or an empty string to indicate that

    See Also

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