Unity マテリアルエディター
Extend this class to write your own custom material editor. For more detailed information see the Custom Material Editor section of the ShaderLab reference.
kMiniTextureFieldLabelIndentLevel | ミニテクスチャフィールドとして同じインデントが必要なシェーダープロパティーをインデントするのに役に立ちます |
isVisible | 現在のマテリアルが展開されているかどうか |
Awake | エディターが Awake となったときに呼び出されます |
BeginAnimatedCheck | Creates a Property wrapper, useful for making regular GUI controls work with MaterialProperty. |
ColorProperty | カラーシェーダープロパティーのためのプロパティーフィールドを描画します |
DefaultPreviewGUI | マテリアルのプレビュー領域のデフォルトの処理 |
DefaultPreviewSettingsGUI | マテリアルのプレビュー領域のデフォルトのツールバー |
DefaultShaderProperty | すべてのカスタム Drawer を無視して一つのシェーダープロパティーの UI をハンドリングします |
DoubleSidedGIField | Display UI for editing a material's Double Sided Global Illumination setting. Returns true if the UI is indeed displayed i.e. the material supports the Double Sided Global Illumination setting. +See Also: Material.doubleSidedGI. |
EmissionEnabledProperty | This function will draw the UI for controlling whether emission is enabled or not on a material. |
EnableInstancingField | Display UI for editing material's render queue setting. |
EndAnimatedCheck | Ends a Property wrapper started with BeginAnimatedCheck. |
FloatProperty | float シェーダープロパティーのためのプロパティーフィールドを描画します |
GetPropertyHeight | プロパティーに必要な高さを算出します |
GetTexturePropertyCustomArea | ラベルの下で大きないくつかのオブジェクトフィールドの前にフリーな Rect を返します。タイルやオフセットプロパティーなどに使用されます。 |
HasPreviewGUI | このコンポーネントは、現在の状態でプレビューすることができるかどうか |
HelpBoxWithButton | メッセージとボタンを含むヘルプボックスを作り、ボタンが押された場合、True を返します |
IsInstancingEnabled | Determines whether the Enable Instancing checkbox is checked. |
LightmapEmissionFlagsProperty | Draws the UI for setting the global illumination flag of a material. |
LightmapEmissionProperty | この関数はライトマップエミッションプロパティーの UI を描画します。 (None, Realtime, Baked)See Also: MaterialLightmapFlags. |
OnDisable | エディターが無効化されるときにコールされ、もし上書きされた場合、ベースの OnDisable() を呼び出しすることでマテリアルインスペクターのセットアップが正しいことを保証する必要があります |
OnEnable | エディターが有効化されるときにコールされ、もし上書きされた場合、ベースの OnEnable() を呼び出しすることでマテリアルインスペクターのセットアップが正しいことを保証する必要があります |
OnInspectorGUI | 特定の MaterialEditor GUI コードをここに実装します。もし既存のエディターを拡張したいだけの場合、カスタム GUI コードが実行される前に、元となる OnInspectorGUI () を呼び出します |
OnPreviewGUI | イメージコンポーネントのためのカスタムプレビュー。 |
PropertiesChanged | マテリアルプロパティーが変更されたときこの関数を呼び出してください。これによりインスペクターが再ビルドされ、プロパティーをチェックします |
PropertiesDefaultGUI | シェーダープロパティーのデフォルトのレンダリング |
PropertiesGUI | 標準マテリアルのプロパティーをレンダリングし、 IShaderGUI インスタンスを使用してプロパティーを表示するか、そうでない場合は PropertiesDefaultGUI を使用します |
RangeProperty | レンジシェーダープロパティーのためのレンジスライダーを描画します |
RegisterPropertyChangeUndo | マテリアルプロパティーを変更したときに呼び出し、アクションの取り消しを追加します |
RenderQueueField | Display UI for editing material's render queue setting. |
RequiresConstantRepaint | この編集結果は現在の状態で常に再描画される必要があるかどうか。 |
SetDefaultGUIWidths | PropertiesGUI を使用して EditorGUIUtility.fieldWidth と labelWidth をデフォルト値に設定します |
SetShader | マテリアルのシェーダーを設定します |
ShaderProperty | 単一シェーダープロパティーの UI をハンドリングします |
TextureCompatibilityWarning | 特定のプロパティーに不適切な種類のテクスチャを指定した場合、問題を解決するために適切な警告を表示し、ユーザーに示唆します |
TextureProperty | テクスチャシェーダープロパティーのプロパティーフィールドを描画します |
TexturePropertyMiniThumbnail | テクスチャシェーダープロパティーのプロパティーフィールドを描画します |
TexturePropertySingleLine | 追加のインラインプロパティーを持つテクスチャプロパティーコントロールを表示するメソッド |
TexturePropertyTwoLines | プロパティーのコンパクトなレイアウトを表示するためのメソッド |
TexturePropertyWithHDRColor | HDR カラーフィールドとその色の明るさの float タイプのフィールドを持つテクスチャプロパティーコントロールを表示するメソッド |
TextureScaleOffsetProperty | テクスチャのタイリングとオフセットプロパティーを描画します |
VectorProperty | レンジシェーダープロパティーのためのレンジスライダーを描画します |
OnShaderChanged | A callback that is invoked when a Material's Shader is changed in the Inspector. |
ApplyMaterialPropertyDrawers | 初期の MaterialPropertyDrawer の値を適用します |
FixupEmissiveFlag | Returns a properly set global illlumination flag based on the passed in flag and the given color. |
GetDefaultPropertyHeight | カスタム Drawer を無視してプロパティーに必要な高さを算出します |
GetFlexibleRectBetweenFieldAndRightEdge | GUI がレイアウトする ShaderGUI のためのユーティリティメソッド カラーフィールドを左に配置した後の Rect の使用例です。 |
GetFlexibleRectBetweenLabelAndField | GUI がレイアウトする ShaderGUI のためのユーティリティメソッド |
GetLeftAlignedFieldRect | GUI がレイアウトする ShaderGUI のためのユーティリティメソッド |
GetMaterialProperties | 渡されたマテリアルのシェーダープロパティー情報を取得します |
GetMaterialProperty | ひとつのシェーダープロパティーに関する情報を取得します |
GetRectAfterLabelWidth | GUI がレイアウトする ShaderGUI のためのユーティリティメソッド これは複数のプロパティーを使用できるラベル後の Rect です。Input Rect は EditorGUILayout.GetControlRect を呼び出すことで取得できます。 |
GetRightAlignedFieldRect | GUI がレイアウトする ShaderGUI のためのユーティリティメソッド |
serializedObject | object や objects の SerializedObject |
target | ターゲットとなるオブジェクト |
targets | 複数選択された場合のターゲットとなるオブジェクト群 |
hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? |
name | オブジェクト名 |
DrawDefaultInspector | Draws the built-in inspector. |
DrawHeader | Editor のヘッダーを描画するためにはこの関数を呼び出します。 |
DrawPreview | プレビュー描画するための最初のエントリーポイントです。 |
GetInfoString | プレビューにアセットの情報を表示するにはこのメソッドを使用します。 |
GetPreviewTitle | プレビューのタイトルを変更したい場合はこのメソッドをオーバーライドします。 |
OnInteractivePreviewGUI | 自身のカスタムのインタラクティブなプレビューを作成するために実装します。カスタムのインタラクティブなプレビューはインスペクター上のプレビューエリアとオブジェクト選択ツールで使用されます |
OnPreviewSettings | プレビューのヘッダーを自由にカスタマイズしたい場合にオーバーライドして使用します。 |
RenderStaticPreview | Override this method if you want to render a static preview. |
Repaint | Redraw any inspectors that shows this editor. |
UseDefaultMargins | デフォルトのマージンを取らせたくない場合、Editor を継承したクラスでメソッドをオーバーライドし、false を返すようにします |
GetInstanceID | オブジェクトのインスタンス ID を返します |
ToString | Returns the name of the object. |
ShouldHideOpenButton | Returns the visibility setting of the "open" button in the Inspector. |
CreateCachedEditor | On return previousEditor is an editor for targetObject or targetObjects. The function either returns if the editor is already tracking the objects, or destroys the previous editor and creates a new one. |
CreateCachedEditorWithContext | Creates a cached editor using a context object. |
CreateEditor | targetObject や複数の targetObjects のためのカスタムエディターを作成します。 |
CreateEditorWithContext | Make a custom editor for targetObject or targetObjects with a context object. |
Destroy | Removes a GameObject, component or asset. |
DestroyImmediate | Destroys the object obj immediately. You are strongly recommended to use Destroy instead. |
DontDestroyOnLoad | Do not destroy the target Object when loading a new Scene. |
FindObjectOfType | タイプ type から最初に見つけたアクティブのオブジェクトを返します |
FindObjectsOfType | タイプから見つけたすべてのアクティブのオブジェクト配列を返します |
Instantiate | original のオブジェクトをクローンします |
CreateInstance | ScriptableObject のインスタンスを作成します。 |
bool | オブジェクトが存在するかどうか |
operator != | 二つのオブジェクトが異なるオブジェクトを参照しているか比較します |
operator == | 2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。 |
OnSceneGUI | Enables the Editor to handle an event in the Scene view. |
OnDestroy | ScriptableObject が破棄されるとき、この関数は呼び出されます。 |
finishedDefaultHeaderGUI | An event raised while drawing the header of the Inspector window, after the default header items have been drawn. |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.