Method GetMatchingPreset
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 |