Struct PrioritySettings
Structure for holding the priority of a camera.
Inherited Members
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. |