ShaderLab構文: Fallback
ShaderLab文法: その他のコマンド

ShaderLab 文法: CustomEditor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

シェーダに対して CustomEditor を定義することが出来ます。Unityはこのときにこの名前で MaterialEditor を拡張したクラスを探します。もし見つかった場合,このシェーダを使用する全てのマテリアルがこのマテリアル インスペクタを使用します。サンプルについては カスタム マテリアル エディタ を参照して下さい。

構文

    CustomEditor "name"

特定の 名前 のマテリアル エディタを使用します。

詳細

CustomEditor ステートメントはこのシェーダを使用する全てのマテリアルに影響します。

Shader "example" {
    // properties and subshaders here...
    CustomEditor "MyCustomEditor"
}
ShaderLab構文: Fallback
ShaderLab文法: その他のコマンド