docs.unity3d.com
    目次を表示する/隠す

    Class GameObjectBrushEditor

    The Brush Editor for a GameObject Brush.

    Inheritance
    Object
    GridBrushEditorBase
    GameObjectBrushEditor
    Inherited Members
    GridBrushEditorBase.OnSelectionInspectorGUI()
    GridBrushEditorBase.OnSelectionSceneGUI(GridLayout, GameObject)
    GridBrushEditorBase.OnSceneGUI(GridLayout, GameObject)
    GridBrushEditorBase.OnMouseLeave()
    GridBrushEditorBase.OnMouseEnter()
    GridBrushEditorBase.OnToolActivated(GridBrushBase.Tool)
    GridBrushEditorBase.OnToolDeactivated(GridBrushBase.Tool)
    GridBrushEditorBase.RegisterUndo(GameObject, GridBrushBase.Tool)
    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

    canChangeZPosition

    Whether the GridBrush can change Z Position.

    Declaration
    public override bool canChangeZPosition { get; set; }
    Property Value
    Type Description
    Boolean
    Overrides
    GridBrushEditorBase.canChangeZPosition

    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.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)