기술 자료

Unity Engine


User Manual

Script Reference

Unity Engine


OnGUI(MaterialEditor, MaterialProperty[])

To define a custom shader GUI use the methods of materialEditor to render controls for the properties array.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
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.