Class CinemachineLensPresets
User-definable named presets for lenses. This is a Singleton asset, available in editor only
Inherited Members
Namespace: Cinemachine.Editor
Assembly: solution.dll
Syntax
[DocumentationSorting(DocumentationSortingAttribute.Level.UserRef)]
[Serializable]
public sealed class CinemachineLensPresets : ScriptableObject
Fields
Name | Description |
---|---|
m_PhysicalPresets | The array containing Preset definitions, for physical cameras |
m_Presets | The array containing Preset definitions for nonphysical cameras |
Properties
Name | Description |
---|---|
Instance | Get the singleton instance of this object. Creates asset if nonexistant |
InstanceIfExists | Get the singleton instance of this object, or null if it doesn't exist |
Methods
Name | Description |
---|---|
GetMatchingPhysicalPreset(float) | Get the index of the physical preset that matches the lens settings |
GetMatchingPreset(float) | Get the index of the preset that matches the lens settings |