docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GameObjectBrush.BrushCell

    Brush Cell stores the data to be painted in a grid cell.

    Inheritance
    object
    GameObjectBrush.BrushCell
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Tilemaps
    Assembly: Unity.2D.Tilemap.Extras.Editor.dll
    Syntax
    [Serializable]
    public class GameObjectBrush.BrushCell

    Properties

    gameObject

    GameObject to be placed when painting.

    Declaration
    public GameObject gameObject { get; set; }
    Property Value
    Type Description
    GameObject

    offset

    Position offset of the GameObject when painted.

    Declaration
    public Vector3 offset { get; set; }
    Property Value
    Type Description
    Vector3

    orientation

    Orientation of the GameObject when painted.

    Declaration
    public Quaternion orientation { get; set; }
    Property Value
    Type Description
    Quaternion

    scale

    Scale of the GameObject when painted.

    Declaration
    public Vector3 scale { get; set; }
    Property Value
    Type Description
    Vector3

    Methods

    GetHashCode()

    Hashes the contents of the brush cell.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code of the brush cell.

    Overrides
    object.GetHashCode()
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)