Version: 2022.3

DetailInstanceTransform

struct in UnityEngine

切换到手册

描述

Describes the transform of a Terrain detail object.

变量

posXThe X coordinate of the detail object in the Terrain's local space. To get the X in world space, add this value to position X of the Terrain.
posYThe Y coordinate of the detail object in the Terrain's local space. To get the Y in world space, add this value to position Y of the Terrain.
posZThe Z coordinate of the detail object in the Terrain's local space. To get the Z in world space, add this value to position Z of the Terrain.
rotationYThe angle, in radians, at which the detail object rotates around the Y-axis.
scaleXZThe X and Z scale values of the detail object. These two values are always the same.
scaleYThe Y scale value of the detail object.