Navigation
API > API/Runtime > API/Runtime/Landscape
Inheritance Hierarchy
- UPrimitiveComponent
- ULandscapeHeightfieldCollisionComponent
- ULandscapeMeshCollisionComponent
References
| Module | Landscape |
| Header | /Engine/Source/Runtime/Landscape/Classes/LandscapeHeightfieldCollisionComponent.h |
| Include | #include "LandscapeHeightfieldCollisionComponent.h" |
Syntax
UCLASS (MinimalAPI, Within=LandscapeProxy)
class ULandscapeHeightfieldCollisionComponent : public UPrimitiveComponent
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bCookedCollisionDataWasDeleted | Cooked HeightField data. | |
| bool[2] | bShouldSaveCookedDataToDDC | Flag to indicate that the next time we cook data, we should save it to the DDC. | |
| FNavHeightfieldSamples | CachedHeightFieldSamples | ||
| FBox | CachedLocalBox | Cached local-space bounding box, created at heightmap update time | |
| uint32 | CollisionHash | ||
| FWordBulkData | CollisionHeightData | The collision height values. Stripped from cooked content | |
| TArray< uint8 > | CollisionQuadFlags | The flags for each collision quad. See ECollisionQuadFlags. | |
| float | CollisionScale | Collision scale: (ComponentSizeQuads) / (CollisionSizeQuads) | |
| int32 | CollisionSizeQuads | Size of component in collision quads | |
| TArray< TObjectPtr< ULandscapeLayerInfoObject > > | ComponentLayerInfos | List of layers painted on this component. | |
| TArray< uint8 > | CookedCollisionData | ||
| TArray< uint8 > | CookedCollisionDataEd | Cooked editor specific heightfield data, never serialized | |
| TArray< TObjectPtr< UPhysicalMaterial > > | CookedPhysicalMaterials | This is a list of physical materials that is actually used by a cooked HeightField | |
| FByteBulkData | DominantLayerData | Indices into the ComponentLayers array for the per-vertex dominant layer. | |
| int32 | HeightfieldColumnsCount | ||
| FGuid | HeightfieldGuid | Guid used to share Physics heightfield objects in the editor | |
| TRefCountPtr< FHeightfieldGeometryRef > | HeightfieldRef | Physics engine version of heightfield data. | |
| int32 | HeightfieldRowsCount | Cached PxHeightFieldSamples values for navmesh generation. | |
| Chaos::FHeightFieldPtr | LocalHeightfieldGeometryRef | Local non-serialized ref counted pointers to keep the chaos heightfields alive between Unregister() and actual destruction of the component. | |
| Chaos::FHeightFieldPtr | LocalHeightfieldSimpleGeometryRef | ||
| FByteBulkData | PhysicalMaterialRenderData | Indices for physical materials generated by the render material. Stripped from cooked content | |
| TArray< TObjectPtr< UPhysicalMaterial > > | PhysicalMaterialRenderObjects | Physical materials objects referenced by the indices in PhysicalMaterialRenderData. | |
| int32 | SectionBaseX | Offset of component in landscape quads | |
| int32 | SectionBaseY | ||
| int32 | SimpleCollisionSizeQuads | Size of component's "simple collision" in collision quads | |
| TSharedPtr< FAsyncPreRegisterDDCRequest > | SpeculativeDDCRequest | Async DCC load for cooked collision representation. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
ULandscapeHeightfieldCollisionComponent
(
const FObjectInitializer& ObjectInitializer |
|||
ULandscapeHeightfieldCollisionComponent
(
FVTableHelper& Helper |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyWorldOffset
(
const FVector& InOffset, |
||
| void | BeginDestroy () |
||
| FBoxSphereBounds | CalcBounds
(
const FTransform& BoundTransform |
||
| uint32 | Computes a hash of all the data that will impact final collision | ||
| bool | CookCollisionData
(
const FName& Format, |
Cooks raw height data into collision object binary stream | |
| void | CreateCollisionObject
(
bool bUseDefaultMaterialOnly, |
Creates collision object from raw runtime data. | |
| void | Creates collision object from a cooked collision data | ||
| FPrimitiveSceneProxy * | The scene proxy is only for debug purposes : | ||
| void | DestroyComponent
(
bool bPromoteChildren |
||
| bool | DoCustomNavigableGeometryExport
(
FNavigableGeometryExport& GeomExport |
||
| void | ExportCustomProperties
(
FOutputDevice& Out, |
||
| bool | FillHeightTile
(
TArrayView< float > Heights, |
Populates a supplied array with the heights from the heightfield. | |
| bool | FillMaterialIndexTile
(
TArrayView< uint8 > Materials, |
||
| void | GatherGeometrySlice
(
FNavigableGeometryExport& GeomExport, |
||
| ECollisionEnabled::Type | |||
| ECollisionChannel | |||
| ECollisionResponse | GetCollisionResponseToChannel
(
ECollisionChannel Channel |
||
| const FCollisionResponseContainer & | |||
| void | GetCollisionSampleInfo
(
int32& OutCollisionSizeVerts, |
||
| ENavDataGatheringMode | |||
| TOptional< float > | GetHeight
(
float X, |
||
| ULandscapeInfo * | Gets the landscape info object for this landscape | ||
| ALandscapeProxy * | Return the landscape actor associated with this component. | ||
| UPhysicalMaterial * | GetPhysicalMaterial
(
float X, |
||
| ULandscapeComponent * | Returns associated landscape component | ||
| void | GetResourceSizeEx
(
FResourceSizeEx& CumulativeResourceSize |
||
| FIntPoint | |||
| void | ImportCustomProperties
(
const TCHAR* SourceText, |
||
| bool | IsShown
(
const FEngineShowFlags& ShowFlags |
||
| bool | |||
| bool | |||
| void | |||
| void | |||
| void | OnRegister () |
||
| void | OnUnregister () |
||
| void | |||
| void | PostEditUndo () |
||
| void | PostLoad () |
||
| void | |||
| void | PreSave
(
FObjectPreSaveContext ObjectSaveContext |
||
| bool | Recreate heightfield and restart physics | ||
| void | Serialize
(
FArchive& Ar |
||
| void | SetRenderComponent
(
ULandscapeComponent* InRenderComponent |
||
| void | SetSectionBase
(
FIntPoint InSectionBase |
||
| void | |||
| void | SnapFoliageInstances
(
const FBox& InInstanceBox |
Called from editor code to manage foliage instances on landscape. | |
| void | We speculatively async load collision object from DDC to remove hitch when streaming | ||
| bool | |||
| void | UpdateHeightfieldRegion
(
int32 ComponentX1, |
Modify a sub-region of the physics heightfield. | |
| bool | WriteRuntimeData
(
const FWriteRuntimeDataParams& Params, |
Writes to a cooked data buffer using raw heightfield data. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FHeightfieldGeometryRef | |||
| FWriteRuntimeDataParams |
Enums
| Type | Name | Description | |
|---|---|---|---|
| ECollisionQuadFlags |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| TLazyObjectPtr< ULandscapeComponent > | RenderComponent_DEPRECATED | Reference to render component |