ドキュメント

Unity Engine

Unity Engine

virtualCameraPreviewInstantiator

Override this function to pass your own Camera provider to generate previews for virtual cameras.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static Func<Camera> virtualCameraPreviewInstantiator { get; set; }

Remarks

When set, the Cameras Overlay uses the returned Camera to generate previews for virtual cameras, such as the Cinemachine Camera, which are not represented by a Camera instance. This is useful when a camera GameObject must have additional components.