言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

MaterialEditor.ShaderProperty

public function ShaderProperty(position: Rect, prop: MaterialProperty, label: string): void;

Description

単一シェーダプロパティの UI をハンドリングします

この関数は指定したシェーダプロパティに対して、型にもとづき適切な UI を描画します。 シェーダ プロパティに対して定義された任意のカスタム MaterialPropertyDrawer オブジェクトもまた適用されます。もしデフォルトの UIをカスタム Drawer なしで描画したい場合、 DefaultShaderProperty 関数を使用して下さい。 See Also: MaterialProperty, MaterialPropertyDrawer.