![]() The CustomGridBrush attribute has the following properties: This allows you to configure the behaviour of the Brush in the Palette window. You can add a CustomGridBrush attribute to your Scriptable Brush class. These Brush Assets are listed separately in the Brush dropdown. More info See in Glossary in your project. You can also create some asset types in Unity, such as an Animator Controller, an Audio Mixer or a Render Texture. An asset may come from a file created outside of Unity, such as a 3D model, an audio file or an image. If you want to have multiple copies of that Brush with different properties, you can instantiate the Brush as Assets Any media or data that can be used in your game or Project. Any modifications to the brush properties are stored in that instance. By default, an instance of the Scriptable Brush script is instantiated and stored in the Library folder of your project. When created, the Scriptable Brush is listed in the Brushes Dropdown in the Palette window. This list of targets is shown as a dropdown in the Palette window. You can also override validTargets to have a custom list of targets which the Brush can interact with.You can also override OnPaintSceneGUI to add additional behaviour when painting on the SceneView.More info See in Glossary show up on the Palette when the Brush is selected to provide additional behaviour when painting. You can override OnPaintInspectorGUI to have an inspector A Unity window that displays information about the currently selected GameObject, Asset or Project Settings, allowing you to inspect and edit the values.The following are the main methods you would want to override when creating a custom editor: This works the same way as custom editors for scriptable objects. You can also make a custom editor for your brush. You may convert this new instance to an Asset in the Editor in order to use it repeatedly by calling AssetDatabase.CreateAsset(). Rotate rotates the items set in the Brush.Ĭreate instances of your new class using ScriptableObject.CreateInstance().FloodFill allows the Brush to fill items onto the target Grid. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |