docs.unity3d.com
    Show / Hide Table of Contents

    Class CoordinateBrushEditor

    The Brush Editor for a Coordinate Brush.

    Inheritance
    Object
    GridBrushEditorBase
    GridBrushEditor
    CoordinateBrushEditor
    Inherited Members
    GridBrushEditor.OnEnable()
    GridBrushEditor.OnDisable()
    GridBrushEditor.OnSelectionInspectorGUI()
    UnityEditor.Tilemaps.GridBrushEditor.OnSelectionSceneGUI(UnityEngine.GridLayout, UnityEngine.GameObject)
    GridBrushEditor.OnMouseLeave()
    UnityEditor.Tilemaps.GridBrushEditor.OnToolDeactivated(UnityEngine.GridBrushBase.Tool)
    UnityEditor.Tilemaps.GridBrushEditor.RegisterUndo(UnityEngine.GameObject, UnityEngine.GridBrushBase.Tool)
    UnityEditor.Tilemaps.GridBrushEditor.PaintPreview(UnityEngine.GridLayout, UnityEngine.GameObject, UnityEngine.Vector3Int)
    UnityEditor.Tilemaps.GridBrushEditor.BoxFillPreview(UnityEngine.GridLayout, UnityEngine.GameObject, UnityEngine.BoundsInt)
    UnityEditor.Tilemaps.GridBrushEditor.FloodFillPreview(UnityEngine.GridLayout, UnityEngine.GameObject, UnityEngine.Vector3Int)
    GridBrushEditor.ClearPreview()
    GridBrushEditor.brush
    UnityEditor.Tilemaps.GridBrushEditor.canChangeZPosition
    GridBrushEditor.validTargets
    GridBrushEditorBase.OnPaintInspectorGUI()
    UnityEditor.Tilemaps.GridBrushEditorBase.OnSceneGUI(UnityEngine.GridLayout, UnityEngine.GameObject)
    GridBrushEditorBase.OnMouseEnter()
    UnityEditor.Tilemaps.GridBrushEditorBase.OnToolActivated(UnityEngine.GridBrushBase.Tool)
    Namespace: UnityEditor.Tilemaps
    Syntax
    [CustomEditor(typeof(CoordinateBrush))]
    public class CoordinateBrushEditor : GridBrushEditor

    Methods

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

    Callback for painting the GUI for the GridBrush in the Scene View. The CoordinateBrush Editor overrides this to draw the current coordinates of the brush.

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

    Grid that the brush is being used on.

    GameObject brushTarget

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

    BoundsInt position

    Current selected location of the brush.

    GridBrushBase.Tool tool

    Current GridBrushBase::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