docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetExtraState

    GetExtraState<T>(CinemachineVirtualCameraBase)

    Because extensions can be placed on manager cams and will in that case be called for all the vcam children, vcam-specific state information should be stored here. Just define a class to hold your state info and use it exclusively when calling this.

    Declaration
    protected T GetExtraState<T>(CinemachineVirtualCameraBase vcam) where T : CinemachineExtension.VcamExtraStateBase, new()
    Parameters
    Type Name Description
    CinemachineVirtualCameraBase vcam

    The virtual camera being processed

    Returns
    Type Description
    T

    The extra state, cast as type T

    Type Parameters
    Name Description
    T

    The type of the extra state class

    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)