메소드 | 설명 | |
---|---|---|
Clone ( TerrainData source, int detailResolutionPerPatch ) : TerrainData |
Clone TerrainData object
|
|
ControlTextureToFloatArray ( |
Return a control texture as a float[height,width] for e.g., height or splat
|
|
ControlTextureToIntArray ( |
Return a control texture as an int[height,width] for e.g., detail distribution
|
|
SetTextureFromDetails ( |
Update a grayscale control texture using the supplied information
|
|
TerrainToTreePosition ( Terrain terrain, Vector3 terrainSpacePosition ) : Vector3 |
Convert terrainSpacePosition into a tree-space position
|
|
TerrainToTreePosition ( Vector3 inverseTerrainSize, Vector3 terrainSpacePosition ) : Vector3 |
Convert terrainSpacePosition into a tree-space position
|
|
TreeToTerrainPosition ( Terrain terrain, Vector3 treeSpacePosition ) : Vector3 |
Convert treeSpacePosition into a terrain-space position
|
public static Clone ( TerrainData source, int detailResolutionPerPatch ) : TerrainData | ||
source | TerrainData |
/// A |
detailResolutionPerPatch | int |
/// A |
리턴 | TerrainData |
public static ControlTextureToFloatArray ( |
||
tex |
/// A |
|
xBase | int |
/// A |
yBase | int |
/// A |
width | int |
/// A |
height | int |
/// A |
scale | float |
/// A |
리턴 | ].float[ |
public static ControlTextureToIntArray ( |
||
tex |
/// A |
|
xBase | int |
/// A |
yBase | int |
/// A |
width | int |
/// A |
height | int |
/// A |
res | int |
/// A |
리턴 | ].int[ |
public static SetTextureFromDetails ( |
||
tex |
/// A |
|
xBase | int |
/// A |
yBase | int |
/// A |
details | int |
/// A |
res | int |
/// A |
리턴 | void |
public static TerrainToTreePosition ( Terrain terrain, Vector3 terrainSpacePosition ) : Vector3 | ||
terrain | Terrain |
/// A |
terrainSpacePosition | Vector3 |
/// A |
리턴 | Vector3 |
public static TerrainToTreePosition ( Vector3 inverseTerrainSize, Vector3 terrainSpacePosition ) : Vector3 | ||
inverseTerrainSize | Vector3 |
/// A |
terrainSpacePosition | Vector3 |
/// A |
리턴 | Vector3 |
public static TreeToTerrainPosition ( Terrain terrain, Vector3 treeSpacePosition ) : Vector3 | ||
terrain | Terrain |
/// A |
treeSpacePosition | Vector3 |
/// A |
리턴 | Vector3 |