Delegate CameraEditorUtils.GetPreviewCamera
Delegate that must give an initialized preview camera
Namespace: UnityEditor.Rendering
Syntax
public delegate Camera GetPreviewCamera(Camera sourceCamera, Vector2 previewSize);
Parameters
Type | Name | Description |
---|---|---|
Camera | sourceCamera | The initial Camera we want a preview from |
Vector2 | previewSize | The size of the preview |
Returns
Type | Description |
---|---|
Camera | The Preview camera, initialized |