docs.unity3d.com
    Show / Hide Table of Contents

    Class GameObjectBrush.BrushCell

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

    Inheritance
    Object
    GameObjectBrush.BrushCell
    Namespace: UnityEditor.Tilemaps
    Syntax
    [Serializable]
    public class 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

    Orientatio 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
    Int32

    A hash code of the brush cell.

    Overrides
    Object.GetHashCode()
    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