docs.unity.cn
    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 © 2022 Unity Technologies
    Generated by DocFX
    on Friday, December 16, 2022
    Terms of use