Class GameObjectBrush.BrushCell
Brush Cell stores the data to be painted in a grid cell.
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. |