The abstract class that TerrainPaintToolWithOverlays inherits from.
Contains fields that can be overridden when you implement your own terrain painting tools to display in Terrain overlays. When you create custom Terrain Tools, they must inherit from the TerrainPaintToolWithOverlays<T0> class rather than this class.
Category | The TerrainCategory that the Terrain Tool belongs to. |
HasBrushAttributes | True if the Terrain Tool has brush attributes, false otherwise. |
HasBrushMask | True if Terrain Tool has brush masks, false otherwise. |
HasToolSettings | True if Terrain Tool has custom settings, false otherwise. |
IconIndex | The index at which you should place the Terrain Tool in the Terrain Tools overlay. |
OffIcon | The icon displayed in the Terrain Tools overlay when the Terrain Tool isn't selected. |
OnIcon | The icon displayed in the Terrain Tools overlay when the terrain tool is selected. |
Terrain | The last hit terrain or the last active instance of a terrain object. |
GetDescription | Description of the Terrain Tool. |
GetName | Name of the Terrain Tool. |
OnActivated | This function is called when the tool is activated. |
OnDisable | Called when the tool is destroyed. |
OnEnable | Called when the tool is created. |
OnEnterToolMode | This function is called when the Terrain Tool is activated. |
OnExitToolMode | This function is called when the Terrain Tool becomes inactive. |
OnInspectorGUI | Custom Terrain Tool OnInspectorGUI callback. |
OnPaint | Custom Terrain Tool paint callback. |
OnRenderBrushPreview | Use this method to implement custom tool preview and UI behavior that only renders while the mouse is within the SceneView bounds or while you're actively using this tool. |
OnSceneGUI | Custom Terrain Tool OnSceneGUI callback. |
OnToolGUI | This method is used to implement the custom terrain editor paint tool. |
OnToolSettingsGUI | Contains the IMGUI code for custom settings beyond the common settings. |
OnWillBeDeactivated | Invoked before the terrain paint tool with overlays stops being the active tool. |
gridSnapEnabled | Use this property to allow the current EditorTool to enable/disable grid snapping. |
target | ターゲットとなるオブジェクト |
targets | An array of the objects being inspected. |
toolbarIcon | The icon and tooltip for this custom editor tool. If this function is not implemented, the toolbar displays the Inspector icon for the target type. If no target type is defined, the toolbar displays the Tool Mode icon. |
hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? |
name | オブジェクト名 |
IsAvailable | Checks whether the custom editor tool is available based on the state of the editor. |
GetInstanceID | Gets the instance ID of the object. |
ToString | Returns the name of the 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. |
FindAnyObjectByType | Retrieves any active loaded object of Type type. |
FindFirstObjectByType | Retrieves the first active loaded object of Type type. |
FindObjectsByType | Retrieves a list of all loaded objects of Type type. |
Instantiate | original のオブジェクトをクローンします |
CreateInstance | ScriptableObject のインスタンスを作成します。 |
bool | オブジェクトが存在するかどうか |
operator != | 二つのオブジェクトが異なるオブジェクトを参照しているか比較します |
operator == | 2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。 |
Awake | ScriptableObject スクリプトを開始するとき、この関数は呼び出されます。 |
OnDestroy | ScriptableObject が破棄されるとき、この関数は呼び出されます。 |
OnValidate | Editor-only function that Unity calls when the script is loaded or a value changes in the Inspector. |
Reset | デフォルト値にリセットします |