Version: 2022.2

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.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961