C# Класс UnityEngine.TreeInstance

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
color Color32
heightScale float
lightmapColor Color32
position Vector3
prototypeIndex int
rotation float
widthScale float

Описание свойств

color публичное свойство

Color of this instance.

public Color32,UnityEngine color
Результат Color32

heightScale публичное свойство

Height scale of this instance (compared to the prototype's size).

public float heightScale
Результат float

lightmapColor публичное свойство

Lightmap color calculated for this instance.

public Color32,UnityEngine lightmapColor
Результат Color32

position публичное свойство

Position of the tree.

public Vector3 position
Результат Vector3

prototypeIndex публичное свойство

Index of this instance in the TerrainData.treePrototypes array.

public int prototypeIndex
Результат int

rotation публичное свойство

Read-only. Rotation of the tree on X-Z plane (in radians).

public float rotation
Результат float

widthScale публичное свойство

Width scale of this instance (compared to the prototype's size).

public float widthScale
Результат float