Class CinemachineVirtualCameraBaseEditor<T>
Base class for virtual camera editors. Handles drawing the header and the basic properties.
Inherited Members
Namespace: Cinemachine.Editor
Syntax
public class CinemachineVirtualCameraBaseEditor<T> : BaseEditor<T>, IPreviewable, IToolModeOwner where T : CinemachineVirtualCameraBase
Type Parameters
Name | Description |
---|---|
T | The type of CinemachineVirtualCameraBase being edited |
Methods
DrawCameraStatusInInspector()
Draw the Live status in the inspector, and the Solo button
Declaration
protected void DrawCameraStatusInInspector()
DrawExtensionsWidgetInInspector()
Draw the Extensions dropdown in the inspector
Declaration
protected void DrawExtensionsWidgetInInspector()
DrawGlobalControlsInInspector()
Draw the global settings controls in the inspector
Declaration
protected void DrawGlobalControlsInInspector()
DrawHeaderInInspector()
Draw the virtual camera header in the inspector.
This includes Solo button, Live status, and global settings
Declaration
protected void DrawHeaderInInspector()
DrawLensSettingsInInspector(SerializedProperty)
Draw the Lens Settings controls in the inspector
Declaration
protected void DrawLensSettingsInInspector(SerializedProperty property)
Parameters
Type | Name | Description |
---|---|---|
SerializedProperty | property | The SerializedProperty for the field of type LensSettings field |
DrawTargetsInInspector(SerializedProperty, SerializedProperty)
Draw the LookAt and Follow targets in the inspector
Declaration
protected void DrawTargetsInInspector(SerializedProperty followTarget, SerializedProperty lookAtTarget)
Parameters
Type | Name | Description |
---|---|---|
SerializedProperty | followTarget | Follow target SerializedProperty |
SerializedProperty | lookAtTarget | LookAt target SerializedProperty |
GetExcludedPropertiesInInspector()
Obsolete, do not use. Use the overload, which is more performant
Declaration
protected override List<string> GetExcludedPropertiesInInspector()
Returns
Type | Description |
---|---|
List<String> | List of property names to exclude |
Overrides
GetExcludedPropertiesInInspector(List<String>)
Get the property names to exclude in the inspector.
Implementation should call the base class implementation
Declaration
protected override void GetExcludedPropertiesInInspector(List<string> excluded)
Parameters
Type | Name | Description |
---|---|---|
List<String> | excluded | Add the names to this list |
Overrides
OnDisable()
Inspector panel is being disabled. Implementation should call the base class implementation
Declaration
protected virtual void OnDisable()
OnEnable()
Inspector panel is being enabled.
Implementation should call the base class implementation
Declaration
protected virtual void OnEnable()
OnInspectorGUI()
Create the contents of the inspector panel. This implementation draws header and Extensions widget, and uses default algorithms to draw the properties in the inspector
Declaration
public override void OnInspectorGUI()