docs.unity3d.com
    Show / Hide Table of Contents

    Class GameObjectBrushEditor

    The Brush Editor for a GameObject Brush.

    Inheritance
    Object
    GridBrushEditorBase
    GameObjectBrushEditor
    Inherited Members
    GridBrushEditorBase.OnSelectionInspectorGUI()
    UnityEditor.Tilemaps.GridBrushEditorBase.OnSelectionSceneGUI(UnityEngine.GridLayout, UnityEngine.GameObject)
    UnityEditor.Tilemaps.GridBrushEditorBase.OnSceneGUI(UnityEngine.GridLayout, UnityEngine.GameObject)
    GridBrushEditorBase.OnMouseLeave()
    GridBrushEditorBase.OnMouseEnter()
    UnityEditor.Tilemaps.GridBrushEditorBase.OnToolActivated(UnityEngine.GridBrushBase.Tool)
    UnityEditor.Tilemaps.GridBrushEditorBase.OnToolDeactivated(UnityEngine.GridBrushBase.Tool)
    UnityEditor.Tilemaps.GridBrushEditorBase.RegisterUndo(UnityEngine.GameObject, UnityEngine.GridBrushBase.Tool)
    UnityEditor.Tilemaps.GridBrushEditorBase.canChangeZPosition
    Namespace: UnityEditor.Tilemaps
    Syntax
    [CustomEditor(typeof(GameObjectBrush))]
    public class GameObjectBrushEditor : GridBrushEditorBase

    Properties

    brush

    The GameObjectBrush for this Editor

    Declaration
    public GameObjectBrush brush { get; }
    Property Value
    Type Description
    GameObjectBrush

    validTargets

    The targets that the GameObjectBrush can paint on

    Declaration
    public override GameObject[] validTargets { get; }
    Property Value
    Type Description
    GameObject[]
    Overrides
    GridBrushEditorBase.validTargets

    Methods

    OnPaintInspectorGUI()

    Callback for painting the inspector GUI for the GameObjectBrush in the tilemap palette. The GameObjectBrush Editor overrides this to show the usage of this Brush.

    Declaration
    public override void OnPaintInspectorGUI()
    Overrides
    GridBrushEditorBase.OnPaintInspectorGUI()

    OnPaintSceneGUI(GridLayout, GameObject, BoundsInt, GridBrushBase.Tool, Boolean)

    Callback for painting the GUI for the GridBrush in the Scene View. The GameObjectBrush Editor overrides this to draw the preview of the brush when drawing lines.

    Declaration
    public override void OnPaintSceneGUI(GridLayout gridLayout, GameObject brushTarget, BoundsInt position, GridBrushBase.Tool tool, bool executing)
    Parameters
    Type Name Description
    GridLayout gridLayout

    Grid that the brush is being used on.

    GameObject brushTarget

    Target of the GameObjectBrush::ref::Tool operation. By default the currently selected GameObject.

    BoundsInt position

    Current selected location of the brush.

    GridBrushBase.Tool tool

    Current GameObjectBrush::ref::Tool selected.

    Boolean executing

    Whether brush is being used.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023