Documentation

Unity Engine

Unity Engine

OnGUI

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

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

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.