docs.unity3d.com
    Show / Hide Table of Contents

    Class LineBrushEditor

    The Brush Editor for a Line Brush.

    Inheritance
    Object
    GridBrushEditorBase
    GridBrushEditor
    LineBrushEditor
    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.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(LineBrush))]
    public class LineBrushEditor : GridBrushEditor

    Methods

    ClearPreview()

    Clears all line previews.

    Declaration
    public override void ClearPreview()
    Overrides
    GridBrushEditor.ClearPreview()

    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 preview of the brush when drawing lines.

    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