文档

Unity Engine

Unity Engine

CreateVisualElement()

CreateVisualElement is called when a Viewpoint is selected in the Cameras Overlay.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public virtual VisualElement CreateVisualElement()

Returns

Type

Description

VisualElementThe VisualElement to attach to the Cameras Overlay when the associated camera is active.

Remarks

Viewpoint sends visual information directly on to the Cameras overlay. Provide a reference of an instance of VisualElement and it attaches underneath the Cameras overlay toolbar when a Camera is being looked through.