docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct PrioritySettings

    Structure for holding the priority of a camera.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Cinemachine
    Assembly: Unity.Cinemachine.dll
    Syntax
    [Serializable]
    public struct PrioritySettings

    Fields

    Enabled

    If false, default priority of 0 will be used. If true, the the Priority field is valid.

    Declaration
    [Tooltip("Enable this to expose the Priority field")]
    public bool Enabled
    Field Value
    Type Description
    bool

    Properties

    Value

    Priority to use, if Enabled is true

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

    Operators

    implicit operator PrioritySettings(int)

    Implicit conversion from int

    Declaration
    public static implicit operator PrioritySettings(int priority)
    Parameters
    Type Name Description
    int priority

    The value to initialize the priority settings with.

    Returns
    Type Description
    PrioritySettings

    A new priority settings with the given priority.

    implicit operator int(PrioritySettings)

    Implicit conversion to int

    Declaration
    public static implicit operator int(PrioritySettings prioritySettings)
    Parameters
    Type Name Description
    PrioritySettings prioritySettings

    The priority settings to convert.

    Returns
    Type Description
    int

    The value of the priority settings.

    In This Article
    Back to top
    Copyright © 2025 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)