C# Class UnityEngine.Terrain

Inheritance: Behaviour
Mostra file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Private Properties

Property Type Description
ApplyDelayedHeightmapModification void
CreateTerrainGameObject GameObject
Flush void
GetClosestReflectionProbesInternal void
INTERNAL_CALL_AddTreeInstance void
INTERNAL_CALL_GetPosition void
INTERNAL_CALL_RemoveTrees void
INTERNAL_CALL_SampleHeight float
INTERNAL_get_legacySpecular void
INTERNAL_get_lightmapScaleOffset void
INTERNAL_get_realtimeLightmapScaleOffset void
INTERNAL_set_legacySpecular void
INTERNAL_set_lightmapScaleOffset void
INTERNAL_set_realtimeLightmapScaleOffset void
Internal_GetSplatMaterialPropertyBlock void
RemoveTrees void
SetNeighbors void
SetSplatMaterialPropertyBlock void

Public Methods

Method Description
AddTreeInstance ( TreeInstance instance ) : void

Adds a tree instance to the terrain.

GetClosestReflectionProbes ( List result ) : void
GetPosition ( ) : Vector3

Get the position of the terrain.

GetSplatMaterialPropertyBlock ( MaterialPropertyBlock dest ) : void

Get the previously set splat material properties by copying to the dest MaterialPropertyBlock object.

SampleHeight ( Vector3 worldPosition ) : float

Samples the height at the given position defined in world space, relative to the terrain space.

Private Methods

Method Description
ApplyDelayedHeightmapModification ( ) : void
CreateTerrainGameObject ( TerrainData assignTerrain ) : GameObject
Flush ( ) : void
GetClosestReflectionProbesInternal ( object result ) : void
INTERNAL_CALL_AddTreeInstance ( Terrain self, TreeInstance &instance ) : void
INTERNAL_CALL_GetPosition ( Terrain self, Vector3 &value ) : void
INTERNAL_CALL_RemoveTrees ( Terrain self, Vector2 &position, float radius, int prototypeIndex ) : void
INTERNAL_CALL_SampleHeight ( Terrain self, Vector3 &worldPosition ) : float
INTERNAL_get_legacySpecular ( Color &value ) : void
INTERNAL_get_lightmapScaleOffset ( Vector4 &value ) : void
INTERNAL_get_realtimeLightmapScaleOffset ( Vector4 &value ) : void
INTERNAL_set_legacySpecular ( Color &value ) : void
INTERNAL_set_lightmapScaleOffset ( Vector4 &value ) : void
INTERNAL_set_realtimeLightmapScaleOffset ( Vector4 &value ) : void
Internal_GetSplatMaterialPropertyBlock ( MaterialPropertyBlock dest ) : void
RemoveTrees ( Vector2 position, float radius, int prototypeIndex ) : void
SetNeighbors ( Terrain left, Terrain top, Terrain right, Terrain bottom ) : void
SetSplatMaterialPropertyBlock ( MaterialPropertyBlock properties ) : void

Method Details

AddTreeInstance() public method

Adds a tree instance to the terrain.

public AddTreeInstance ( TreeInstance instance ) : void
instance TreeInstance
return void

GetClosestReflectionProbes() public method

public GetClosestReflectionProbes ( List result ) : void
result List
return void

GetPosition() public method

Get the position of the terrain.

public GetPosition ( ) : Vector3
return Vector3

GetSplatMaterialPropertyBlock() public method

Get the previously set splat material properties by copying to the dest MaterialPropertyBlock object.

public GetSplatMaterialPropertyBlock ( MaterialPropertyBlock dest ) : void
dest MaterialPropertyBlock
return void

SampleHeight() public method

Samples the height at the given position defined in world space, relative to the terrain space.

public SampleHeight ( Vector3 worldPosition ) : float
worldPosition Vector3
return float