Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


OnGUI

Override this method to make your own GUI for the property.
Read time 1 minuteLast updated 9 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

OnGUI(Rect, MaterialProperty, GUIContent, MaterialEditor)

Override this method to make your own GUI for the property.
public virtual void OnGUI(Rect position, MaterialProperty prop, GUIContent label, MaterialEditor editor)

Parameters

position

Rectangle on the screen to use for the property GUI.

The MaterialProperty to make the custom GUI for.

The label of this property.

Current material editor.

OnGUI(Rect, MaterialProperty, string, MaterialEditor)

Override this method to make your own GUI for the property.
public virtual void OnGUI(Rect position, MaterialProperty prop, string label, MaterialEditor editor)

Parameters

position

Rectangle on the screen to use for the property GUI.

The MaterialProperty to make the custom GUI for.

label

The label of this property.

Current material editor.