Delegate CameraEditorUtils.GetPreviewCamera
Delegate that must give an initialized preview camera
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public delegate Camera CameraEditorUtils.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 |