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 | ミニテクスチャフィールドとして同じインデントが必要なシェーダープロパティーをインデントするのに役に立ちます |
| customShaderGUI | Returns the custom ShaderGUI implemented by the shader. |
| 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 を返します |
| IntegerProperty | Draw a property field for an integer shader property. |
| 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 | Render the standard material properties. This method will either render properties using a ShaderGUI instance if found otherwise it uses 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 の値を適用します |
| BeginProperty | Creates a wrapper enabling the Unity Editor to display GUI controls for the property. |
| EndProperty | Closes a property wrapper that begins with MaterialEditor.BeginProperty. |
| 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 | Get shader property information of the materials you pass in. |
| GetMaterialProperty | ひとつのシェーダープロパティーに関する情報を取得します |
| GetMaterialPropertyNames | Gets the shader property names of the materials you pass in. |
| GetRectAfterLabelWidth | GUI がレイアウトする ShaderGUI のためのユーティリティメソッド これは複数のプロパティーを使用できるラベル後の Rect です。Input Rect は EditorGUILayout.GetControlRect を呼び出すことで取得できます。 |
| GetRightAlignedFieldRect | GUI がレイアウトする ShaderGUI のためのユーティリティメソッド |
| hasUnsavedChanges | This property specifies whether the Editor prompts the user to save or discard unsaved changes before the Inspector gets rebuilt. |
| saveChangesMessage | The message that displays to the user if they are prompted to save. |
| serializedObject | object や objects の SerializedObject |
| target | ターゲットとなるオブジェクト |
| targets | 複数選択された場合のターゲットとなるオブジェクト群 |
| hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? |
| name | オブジェクト名 |
| CreateInspectorGUI | Implement this method to make a custom UIElements inspector. |
| DiscardChanges | Discards unsaved changes to the contents of the editor. |
| 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. |
| SaveChanges | Performs a save action on the contents of the editor. |
| UseDefaultMargins | デフォルトのマージンを取らせたくない場合、Editor を継承したクラスでメソッドをオーバーライドし、false を返すようにします |
| GetInstanceID | Gets the instance ID of the object. |
| 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. |
| DrawFoldoutInspector | Draws the inspector GUI with a foldout header for target. |
| 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. |
| FindAnyObjectByType | Retrieves any active loaded object of Type type. |
| FindFirstObjectByType | Retrieves the first active loaded object of Type type. |
| FindObjectOfType | タイプ type から最初に見つけたアクティブのオブジェクトを返します |
| FindObjectsByType | Retrieves a list of all loaded objects of Type type. |
| FindObjectsOfType | Gets a list of all loaded objects of Type type. |
| Instantiate | original のオブジェクトをクローンします |
| CreateInstance | ScriptableObject のインスタンスを作成します。 |
| bool | オブジェクトが存在するかどうか |
| operator != | 二つのオブジェクトが異なるオブジェクトを参照しているか比較します |
| operator == | 2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。 |
| HasFrameBounds | Validates whether custom bounds can be calculated for this Editor. |
| OnGetFrameBounds | Gets custom bounds for the target of this editor. |
| OnSceneGUI | Enables the Editor to handle an event in the Scene view. |
| OnDestroy | ScriptableObject が破棄されるとき、この関数は呼び出されます。 |
| OnValidate | Editor-only function that Unity calls when the script is loaded or a value changes in the Inspector. |
| Reset | デフォルト値にリセットします |
| finishedDefaultHeaderGUI | An event raised while drawing the header of the Inspector window, after the default header items have been drawn. |