Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.
struct in UnityEngine
Gracias por ayudarnos a mejorar la calidad de la documentación de Unity. A pesar de que no podemos aceptar todas las sugerencias, leemos cada cambio propuesto por nuestros usuarios y actualizaremos los que sean aplicables.
CerrarPor alguna razón su cambio sugerido no pudo ser enviado. Por favor <a>intente nuevamente</a> en unos minutos. Gracias por tomarse un tiempo para ayudarnos a mejorar la calidad de la documentación de Unity.
CerrarContains information about a tree placed in the Terrain game object.
This struct can be accessed from the TerrainData Object.
color | Color of this instance. |
heightScale | Height scale of this instance (compared to the prototype's size). |
lightmapColor | Lightmap color calculated for this instance. |
position | Position of the tree. |
prototypeIndex | Index of this instance in the TerrainData.treePrototypes array. |
rotation | Rotation of the tree on X-Z plane (in radians). |
widthScale | Width scale of this instance (compared to the prototype's size). |