docs.unity.cn
    Show / Hide Table of Contents

    Class InputControlVisualizer

    A component for debugging purposes that adds an on-screen display which shows activity on an input control over time.

    Inheritance
    Object
    InputVisualizer
    InputControlVisualizer
    Inherited Members
    InputVisualizer.ResolveParent()
    Namespace: UnityEngine.InputSystem.Samples
    Syntax
    public class InputControlVisualizer : InputVisualizer
    Remarks

    This component is most useful for debugging input directly on the source device.

    Properties

    control

    The control resolved from controlPath at runtime. May be null.

    Declaration
    public InputControl control { get; }
    Property Value
    Type Description
    InputControl

    controlIndex

    If, at runtime, multiple controls are matching controlPath, this property determines the index of the control that is retrieved from the possible options.

    Declaration
    public int controlIndex { get; set; }
    Property Value
    Type Description
    Int32

    controlPath

    Path of the control that is to be visualized.

    Declaration
    public string controlPath { get; set; }
    Property Value
    Type Description
    String
    See Also
    InputControlPath
    path

    visualization

    What kind of visualization to show.

    Declaration
    public InputControlVisualizer.Mode visualization { get; set; }
    Property Value
    Type Description
    InputControlVisualizer.Mode

    Methods

    OnDisable()

    Declaration
    protected void OnDisable()

    OnEnable()

    Declaration
    protected void OnEnable()

    OnGUI()

    Declaration
    protected void OnGUI()

    OnValidate()

    Declaration
    protected void OnValidate()

    See Also

    InputActionVisualizer
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, January 5, 2022
    Terms of use