文档

Unity Engine

Unity Engine

OnPreviewGUI(Rect, GUIStyle)

Custom preview for Image component.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public override void OnPreviewGUI(Rect r, GUIStyle background)

Parameters

Rectangle in which to draw the preview.

background

Background image.

Remarks

Additional Resources: ObjectPreview.OnPreviewGUI.