Class CinemachinePhysicalLensPalette
User-definable named presets for physical lenses. This is a Singleton asset, available in editor only
Inherited Members
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, InstantiateParameters)
Object.InstantiateAsync<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.Cinemachine.Editor
Assembly: Unity.Cinemachine.Editor.dll
Syntax
[Serializable]
public sealed class CinemachinePhysicalLensPalette : ScriptableObject
Fields
Presets
The array containing Preset definitions, for physical cameras
Declaration
[Tooltip("The array containing Preset definitions, for physical cameras")]
public List<CinemachinePhysicalLensPalette.Preset> Presets
Field Value
Type | Description |
---|---|
List<CinemachinePhysicalLensPalette.Preset> |
Properties
Instance
Get the singleton instance of this object. Creates asset if nonexistent
Declaration
public static CinemachinePhysicalLensPalette Instance { get; }
Property Value
Type | Description |
---|---|
CinemachinePhysicalLensPalette |
InstanceIfExists
Get the singleton instance of this object, or null if it doesn't exist
Declaration
public static CinemachinePhysicalLensPalette InstanceIfExists { get; }
Property Value
Type | Description |
---|---|
CinemachinePhysicalLensPalette |
Methods
GetMatchingPreset(Preset)
Get the index of the physical preset that matches the template
Declaration
public int GetMatchingPreset(CinemachinePhysicalLensPalette.Preset p)
Parameters
Type | Name | Description |
---|---|---|
CinemachinePhysicalLensPalette.Preset | p | Template holding the preset tsettings. Name is ignored. |
Returns
Type | Description |
---|---|
int | the preset index, or -1 if no matching preset |
GetPresetIndex(string)
Get the index of the first physical preset that matches the preset name
Declaration
public int GetPresetIndex(string presetName)
Parameters
Type | Name | Description |
---|---|---|
string | presetName | Name of the preset |
Returns
Type | Description |
---|---|
int | the preset index, or -1 if no matching preset |