ドキュメント

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.