Class CinemachineLensPalette
User-definable named presets for lenses. This is a Singleton asset, available in editor only
Inherited Members
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: solution.dll
Syntax
[Serializable]
public sealed class CinemachineLensPalette : ScriptableObject
Fields
| Name | Description |
|---|---|
| Presets | The array containing Preset definitions for nonphysical cameras |
Properties
| Name | Description |
|---|---|
| Instance | Get the singleton instance of this object. Creates asset if nonexistent |
| InstanceIfExists | Get the singleton instance of this object, or null if it doesn't exist |
Methods
| Name | Description |
|---|---|
| GetMatchingPreset(float) | Get the index of the preset that matches the lens settings |
| GetPresetIndex(string) | Get the index of the first preset that matches the preset name |