Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


OnPreviewGUI(Rect, GUIStyle)

Call this from an Editor.OnPreviewGUI or ObjectPreview.OnPreviewGUI to draw a mesh preview.
Read time 1 minuteLast updated 9 days ago

Definition

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

Parameters

rect

Rectangle in which to draw the preview.

background

The background style.