文档

Unity Engine

Unity Engine

OnGUI(MaterialEditor, MaterialProperty[])

To define a custom shader GUI use the methods of materialEditor to render controls for the properties array.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public virtual void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)

Parameters

materialEditor

The MaterialEditor that are calling this OnGUI (the 'owner').

Material properties of the current selected shader.