docs.unity.cn
    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()
    GridBrushEditor.OnToolDeactivated(GridBrushBase.Tool)
    GridBrushEditor.RegisterUndo(GameObject, GridBrushBase.Tool)
    GridBrushEditor.PaintPreview(GridLayout, GameObject, Vector3Int)
    GridBrushEditor.BoxFillPreview(GridLayout, GameObject, BoundsInt)
    GridBrushEditor.FloodFillPreview(GridLayout, GameObject, Vector3Int)
    GridBrushEditor.brush
    GridBrushEditor.canChangeZPosition
    GridBrushEditor.validTargets
    GridBrushEditorBase.OnPaintInspectorGUI()
    GridBrushEditorBase.OnSceneGUI(GridLayout, GameObject)
    GridBrushEditorBase.OnMouseEnter()
    GridBrushEditorBase.OnToolActivated(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 © 2022 Unity Technologies
    Generated by DocFX
    on Friday, December 16, 2022
    Terms of use