docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method InitializeControllerDefaultsForAxis

    InitializeControllerDefaultsForAxis(in AxisDescriptor, Controller)

    Creates default controllers for an axis. Override this if the default axis controllers do not fit your axes.

    Declaration
    protected override void InitializeControllerDefaultsForAxis(in IInputAxisOwner.AxisDescriptor axis, InputAxisControllerBase<CinemachineInputAxisController.Reader>.Controller controller)
    Parameters
    Type Name Description
    IInputAxisOwner.AxisDescriptor axis

    Description of the axis whose default controller needs to be set.

    InputAxisControllerBase<CinemachineInputAxisController.Reader>.Controller controller

    Controller to drive the axis.

    Overrides
    InputAxisControllerBase<CinemachineInputAxisController.Reader>.InitializeControllerDefaultsForAxis(in IInputAxisOwner.AxisDescriptor, InputAxisControllerBase<CinemachineInputAxisController.Reader>.Controller)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)