Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


OnPreviewGUI(Rect, GUIStyle)

Custom preview for Image component.
Read time 1 minuteLast updated 6 days ago

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.