Terrain
Class in Engine · Engine.Terrain · native, placeable
Object › Actor › Info › Terrain
Using it from Lua
h7.find_all("Terrain") -- live instances
h7.find_class("Engine.Terrain") -- the class
h7.hook("Engine.Terrain.CalcLayerBounds", fn)
Structs
AlphaMap
CachedTerrainMaterialArray
| Field | Type |
CachedMaterials | array |
SelectedTerrainVertex
| Field | Type |
X | int |
Y | int |
Weight | int |
TerrainDecoLayer
Defaults
AlphaMapIndex=-1
TerrainDecoration
Defaults
Density=0.01
MinScale=1.0
MaxScale=1.0
TerrainDecorationInstance
TerrainHeight
TerrainInfoData
TerrainLayer
| Field | Type |
Name | string |
Setup | TerrainLayerSetup |
AlphaMapIndex | int |
Highlighted | bool |
WireframeHighlighted | bool |
Hidden | bool |
HighlightColor | color |
WireframeColor | color |
MinX | int |
MinY | int |
MaxX | int |
MaxY | int |
Defaults
AlphaMapIndex=-1
HighlightColor=(R=255,G=255,B=255)
TerrainMaterialResource
TerrainWeightedMaterial
Properties
| Name | Type | Notes |
AlphaMaps | array<AlphaMap> | const, native |
bAcceptsDynamicLights | bool | const |
bAllowRigidBodyUnderneath | bool | const |
bBilinearFilterLightmapGeneration | bool | |
bBlockRigidBody | bool | const |
bCastDynamicShadow | bool | const |
bCastShadow | bool | |
bEnableSpecular | bool | |
bForceDirectLightMap | bool | const |
bHeightmapLocked | bool | |
bIsOverridingLightResolution | bool | |
bLocked | bool | |
bMorphingEnabled | bool | |
bMorphingGradientsEnabled | bool | |
bShowingCollision | bool | |
bShowWireframe | bool | |
bUseWorldOriginTextureUVs | bool | |
CachedTerrainMaterials | CachedTerrainMaterialArray[2] | const, native |
CollisionTesselationLevel | int | |
DecoLayers | array<TerrainDecoLayer> | const |
EditorTessellationLevel | int | transient |
Heights | array<TerrainHeight> | const, native, private |
InfoData | array<TerrainInfoData> | const, native, private |
Layers | array<TerrainLayer> | const |
LightingChannels | LightingChannelContainer | const |
LightingGuid | Guid | const, private |
LightmassSettings | LightmassPrimitiveSettings | |
MaxComponentSize | int | |
MaxTesselationLevel | int | |
MinTessellationLevel | int | |
NormalMapLayer | int | |
NumPatchesX | int | |
NumPatchesY | int | |
NumSectionsX | int | const |
NumSectionsY | int | const |
NumVerticesX | int | const |
NumVerticesY | int | const |
ReleaseResourcesFence | pointer | const, native |
SelectedVertices | array<SelectedTerrainVertex> | transient |
StaticLightingResolution | int | |
TerrainComponents | array<TerrainComponent> | const |
TerrainPhysMaterialOverride | PhysicalMaterial | const |
TesselationDistanceScale | float | |
TessellationCheckDistance | float | |
WeightedMaterials | array<TerrainWeightedMaterial> | const, native, private |
WeightedTextureMaps | array<TerrainWeightMapTexture> | const, native, private |
WireframeColor | color | |
Functions
| Name | Declaration |
CalcLayerBounds | final native function CalcLayerBounds() |
PostBeginPlay | simulated event PostBeginPlay() |
Default values
NormalMapLayer=-1
NumPatchesX=1
NumPatchesY=1
MaxComponentSize=16
DrawScale3D=(X=256.0,Y=256.0,Z=256.0)
bEdShouldSnap=True
bCollideActors=True
bBlockActors=True
bWorldGeometry=True
bStatic=True
bNoDelete=True
bHidden=False
MaxTesselationLevel=4
MinTessellationLevel=1
CollisionTesselationLevel=1
TessellationCheckDistance=-1.0
TesselationDistanceScale=1.0
StaticLightingResolution=4
bIsOverridingLightResolution=false
bBilinearFilterLightmapGeneration=true
bCastShadow=True
bCastDynamicShadow=True
bBlockRigidBody=True
bAcceptsDynamicLights=True
LightingChannels=(Static=TRUE,bInitialized=TRUE)
bForceDirectLightMap=TRUE
WireframeColor=(R=0,G=255,B=255)
Inherited
| From | Members |
| Info | 0 properties, 0 functions |
| Actor | 156 properties, 262 functions |
| Object | 13 properties, 308 functions |