ULandscapeComponent

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Landscape

Header

/Engine/Source/Runtime/Landscape/Classes/LandscapeComponent.h

Include

#include "LandscapeComponent.h"

Syntax

class ULandscapeComponent : public UPrimitiveComponent

Variables

Name Description

Public variable

TArray< FBox >

 

ActiveExcludedBoxes

Public variable

FGuid

 

BakedTextureMaterialGuid

The Material Guid that used when baking, to detect material recompilations

Public variable

FBox

 

CachedLocalBox

Cached local-space bounding box, created at heightmap update time

Public variable

uint32

 

ChangeTag

Public variable

TLazyObjectPtr<...

 

CollisionComponent

Reference to associated collision component

Public variable

int32

 

CollisionMipLevel

Heightfield mipmap used to generate collision

Public variable

int32

 

ComponentSizeQuads

Total number of quads for this component, has to be >0

Public variable

FLandscapeEditT...

 

EditToolRenderData

Pointer to data shared with the render thread, used by the editor tools

Public variable

int32

 

ForcedLOD

Forced LOD level to use when rendering

Public variable

UTexture2D *...

 

GIBakedBaseColorTexture

Pre-baked Base Color texture for use by distance field GI

Public variable

TSharedRef< FLa...

 

GrassData

Grass data for generation

Public variable

FVector4

 

HeightmapScaleBias

UV offset to Heightmap data from component local coordinates

Public variable

TArray< ULandsc...

 

LayerWhitelist

List of layers allowed to be painted on this component.

Public variable

int32

 

LightingLODBias

LOD level Bias to use when lighting buidling via lightmass, -1 Means automatic LOD calculation based on ForcedLOD + LODBias

Public variable

int32

 

LODBias

LOD level Bias to use when rendering

Public variable

TArray< int8 >

 

LODIndexToMaterialIndex

Mapping between LOD and Material Index

Public variable

FGuid

 

MapBuildDataId

Uniquely identifies this component's built map data.

Public variable

TArray< int8 >

 

MaterialIndexToDisabledTessellationMaterial

Mapping between Material Index to associated generated disabled Tessellation Material

Public variable

TArray< UMateri...

 

MaterialInstances

Public variable

TArray< UMateri...

 

MaterialInstancesDynamic

Public variable

TMap< UMaterial...

 

MaterialPerLOD

Represent the chosen material for each LOD

Public variable

uint8

 

MobileBlendableLayerMask

For ES2

Public variable

TArray< UMateri...

 

MobileCombinationMaterialInstances

The editor needs to save out the combination MIC we'll use for mobile, because we cannot generate it at runtime for standalone PIE games

Public variable

FGuid

 

MobileDataSourceHash

Hash of source for ES2 generated data. Used determine if we need to re-generate ES2 pixel data.

Public variable

TArray< UMateri...

 

MobileMaterialInterfaces

Material interfaces used for mobile

Public variable

TArray< FWeight...

 

MobileWeightmapLayerAllocations

Layer allocations used by mobile.

Public variable

TArray< UTextur...

 

MobileWeightmapTextures

Generated weightmap textures used for ES2.

Public variable

float

 

NegativeZBoundsExtension

Allows overriding the landscape bounds.

Public variable

int32

 

NumSubsections

Number of subsections in X or Y axis

Public variable

UMaterialInterf...

 

OverrideHoleMaterial

Public variable

UMaterialInterf...

 

OverrideMaterial

Public variable

TArray< FLandsc...

 

OverrideMaterials

Public variable

FLandscapeCompo...

 

PlatformData

Platform Data where don't support texture sampling in vertex buffer

Public variable

float

 

PositiveZBoundsExtension

Allows overriding the landscape bounds.

Public variable

int32

 

SectionBaseX

X offset from global components grid origin (in quads)

Public variable

int32

 

SectionBaseY

Y offset from global components grid origin (in quads)

Public variable

int32

 

SimpleCollisionMipLevel

Heightfield mipmap used to generate simple collision

Public variable

uint32

 

SplineHash

Public variable

FGuid

 

StateId

Public variable

float

 

StaticLightingResolution

StaticLightingResolution overriding per component, default value 0 means no overriding

Public variable

int32

 

SubsectionSizeQuads

Number of quads for a subsection of the component. SubsectionSizeQuads+1 must be a power of two.

Public variable

FVector4

 

WeightmapScaleBias

UV offset to component's weightmap data from component local coordinates

Public variable

uint32

 

WeightmapsHash

Represents hash of last weightmap usage update

Public variable

float

 

WeightmapSubsectionOffset

U or V offset into the weightmap for the first subsection, in texture UV space

Public variable

UTexture2D *...

 

XYOffsetmapTexture

XYOffsetmap texture reference

Constructors

Name Description

Public function

ULandscapeComponent

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

void

 

AddDefaultLayerData

(
    const FGuid& InLayerGuid,
    const TArray< ULandscapeComponent&...,
    TMap< UTexture2D*, UTexture2D ...
)

Public function

void

 

AddLayerData

(
    const FGuid& InLayerGuid,
    const FLandscapeLayerComponentData ...
)

Public function Const

bool

 

AreTexturesStreamedForGrassMapRender()

Are the textures we need to render a grassmap currently streamed in?

Public function Const

bool

 

CanRenderGrassMap()

Could a grassmap currently be generated, disregarding whether our textures are streamed in?

Public function

void

 

CheckGenerateLandscapePlatformData

(
    bool bIsCooking,
    const ITargetPlatform* TargetP...
)

Generate mobile data if it's missing or outdated

Public function

void

 

ClearDirtyCollisionHeightData()

Clears component's dirtied collision region (used by Layer System)

Public function

void

 

ClearUpdateFlagsForModes

(
    uint32 InModeMask
)

Public function Const

bool

 

ComponentHasVisibilityPainted()

Returns true if this component has visibility painted

Public function Const

uint32

 

ComputeLayerHash()

Public function

uint32

 

ComputeWeightmapsHash()

Public function

void

 

CopyFinalLayerIntoEditingLayer

(
    FLandscapeEditDataInterface& DataI...,
    TSet< UTexture2D* >& Processe...
)

Public function Static

void

 

CreateEmptyTextureMips

(
    UTexture2D* Texture,
    bool bClear
)

Generate empty mipmaps for weightmap

Public function

void

 

DeleteLayer

(
    ULandscapeLayerInfoObject* Lay...,
    FLandscapeEditDataInterface& Lands...
)

Deletes a layer from this component, removing all its data

Public function

void

 

DestroyCollisionData()

Deletes Collision Component

Public function

float

 

EditorGetPaintLayerWeightAtLocation

(
    const FVector& InLocation,
    ULandscapeLayerInfoObject* Pai...
)

Gets the landscape paint layer weight value at the given position using LandscapeLayerInfo .

Public function

float

 

EditorGetPaintLayerWeightByNameAtLocation

(
    const FVector& InLocation,
    const FName InPaintLayerName
)

Gets the landscape paint layer weight value at the given position using layer name.

Public function

void

 

FillLayer

(
    ULandscapeLayerInfoObject* Lay...,
    FLandscapeEditDataInterface& Lands...
)

Fills a layer to 100% on this component, adding it if needed and removing other layers that get painted away

Public function

void

 

FixupWeightmaps()

Fix up component layers, weightmaps

Public function

void

 

ForEachLayer

(
    TFunctionRef< void&, s...
)

Public function

void

 

GenerateHeightmapMips

(
    TArray< FColor* >& HeightmapT...,
    int32 ComponentX1,
    int32 ComponentY1,
    int32 ComponentX2,
    int32 ComponentY2,
    FLandscapeTextureDataInfo* Tex...
)

Generate mipmaps for height and tangent data.

Public function Static

void

 

GenerateMipsTempl

(
    int32 InNumSubsections,
    int32 InSubsectionSizeQuads,
    UTexture2D* WeightmapTexture,
    DataType* BaseMipData
)

Generate mipmaps for weightmap Assumes all weightmaps are unique to this component.

Public function

void

 

GenerateMobileWeightmapLayerAllocations()

Generates mobile platform data for this component.

Public function

void

 

GeneratePlatformPixelData()

Public function

void

 

GeneratePlatformVertexData

(
    const ITargetPlatform* TargetP...
)

Public function Static

void

 

GenerateWeightmapMips

(
    int32 InNumSubsections,
    int32 InSubsectionSizeQuads,
    UTexture2D* WeightmapTexture,
    FColor* BaseMipData
)

Public function Const

UMaterialIns...

 

GetCombinationMaterial

(
    FMaterialUpdateContext* InMate...,
    const TArray< FWeightmapLayerAlloca...,
    int8 InLODIndex,
    bool bMobile
)

Helper function for UpdateMaterialInstance to get Material without set parameters

Public function Const

void

 

GetComponentExtent

(
    int32& MinX,
    int32& MinY,
    int32& MaxX,
    int32& MaxY
)

Extends passed region with this component section size

Public function Const

const FLands...

 

GetEditingLayer()

Public function

FLandscapeLa...

 

GetEditingLayer()

Public function Const

FGuid

 

GetEditingLayerGUID()

Public function Const

void

 

GetGeneratedTexturesAndMaterialInstances

(
    TArray< UObject* >& OutTextur...
)

Returns all generated textures and material instances used by this component.

Public function Const

UTexture2D &...

 

GetHeightmap

(
    bool InReturnEditingHeightmap
)

Public function Const

ALandscape &...

 

GetLandscapeActor()

Get the landscape actor associated with this component.

Public function Const

UMaterialInt...

 

GetLandscapeHoleMaterial()

Returns the components's LandscapeHoleMaterial, or the Component's OverrideLandscapeHoleMaterial if set

Public function Const

ULandscapeIn...

 

GetLandscapeInfo()

Gets the landscape info object for this landscape

Public function Const

UMaterialInt...

 

GetLandscapeMaterial

(
    int8 InLODIndex
)

Returns the component's LandscapeMaterial, or the Component's OverrideLandscapeMaterial if set

Public function Const

ALandscapePr...

 

GetLandscapeProxy()

Gets the landscape proxy actor which owns this component

Public function Static

FString

 

GetLayerAllocationKey

(
    const TArray< FWeightmapLayerAlloca...,
    UMaterialInterface* LandscapeM...,
    bool bMobile
)

Generate a key for a component's layer allocations to use with MaterialInstanceConstantMap.

Public function

FLandscapeLa...

 

GetLayerData

(
    const FGuid& InLayerGuid
)

Public function Const

const FLands...

 

GetLayerData

(
    const FGuid& InLayerGuid
)

Public function Const

void

 

GetLayerDebugColorKey

(
    int32& R,
    int32& G,
    int32& B
)

Public function Const

uint32

 

GetLayerUpdateFlagPerMode()

Public function

float

 

GetLayerWeightAtLocation

(
    const FVector& InLocation,
    ULandscapeLayerInfoObject* Lay...,
    TArray< uint8 >* LayerCache,
    bool bUseEditingWeightmap
)

Public function Const

ULevel *

 

GetLevel()

Get the level in which the owning actor resides

Public function Const

const FGuid ...

 

GetLightingGuid()

Public function Const

FGuid

 

GetMapBuildDataId()

Public function Const

UMaterialIns...

 

GetMaterialInstance

(
    int32 InIndex,
    bool InDynamic
)

Public function Const

int32

 

GetMaterialInstanceCount

(
    bool InDynamic
)

Public function Const

UMaterialIns...

 

GetMaterialInstanceDynamic

(
    int32 InIndex
)

Gets the landscape material instance dynamic for this component

Public function Const

const FMeshM...

 

GetMeshMapBuildData()

Public function Const

FIntPoint

 

GetSectionBase()

Public function Virtual

void

 

GetStaticLightingInfo

(
    FStaticLightingPrimitiveInfo& OutP...,
    const TArray< ULightComponent*...,
    const FLightingBuildOptions& Optio...
)

Public function Const

const TArray...

 

GetWeightmapLayerAllocations

(
    const FGuid& InLayerGuid
)

Public function

TArray< FWei...

 

GetWeightmapLayerAllocations

(
    const FGuid& InLayerGuid
)

Public function Const

const TArray...

 

GetWeightmapLayerAllocations

(
    bool InReturnEditingWeightmap
)

Public function

TArray< FWei...

 

GetWeightmapLayerAllocations

(
    bool InReturnEditingWeightmap
)

Public function

TArray< UTex...

 

GetWeightmapTextures

(
    bool InReturnEditingWeightmap
)

Public function Const

const TArray...

 

GetWeightmapTextures

(
    bool InReturnEditingWeightmap
)

Public function Const

const TArray...

 

GetWeightmapTexturesUsage

(
    bool InReturnEditingWeightmap
)

Public function

TArray< ULan...

 

GetWeightmapTexturesUsage

(
    bool InReturnEditingWeightmap
)

Public function Const

bool

 

HasLayersData()

Public function

void

 

Init

(
    int32 InBaseX,
    int32 InBaseY,
    int32 InComponentSizeQuads,
    int32 InNumSubsections,
    int32 InSubsectionSizeQuads
)

Initialize the landscape component

Public function

void

 

InitHeightmapData

(
    TArray< FColor >& Heights,
    bool bUpdateCollision
)

Public function

void

 

InitWeightmapData

(
    TArray< ULandscapeLayerInfoObject&...,
    TArray< TArray< uint8 > >& Weights
)

Public function Const

bool

 

IsGrassMapOutdated()

Is the grassmap data outdated, eg by a material

Public function Const

bool

 

IsLandscapeHoleMaterialValid()

Returns true if the component has a valid LandscapeHoleMaterial

Public function Const

bool

 

IsUpdateFlagEnabledForModes

(
    ELandscapeComponentUpdateFlag InFla...,
    uint32 InModeMask
)

Public function Const

bool

 

MaterialHasGrass()

True if the component's landscape material supports grass

Public function

void

 

ReallocateWeightmaps

(
    FLandscapeEditDataInterface* D...,
    bool InCanUseEditingWeightmap,
    bool InSaveToTransactionBuffer,
    bool InInitPlatformDataAsync,
    bool InForceReallocate,
    ALandscapeProxy* InTargetProxy,
    TArray< UTexture2D* >* Ou...
)

Create weightmaps for this component for the layers specified in the WeightmapLayerAllocations array

Protected function

void

 

RecreateCollisionComponent

(
    bool bUseSimpleCollision
)

Public function

void

 

RemoveGrassMap()

Public function

void

 

RemoveInvalidWeightmaps()

Public function

void

 

RemoveLayerData

(
    const FGuid& InLayerGuid
)

Public function

void

 

RenderGrassMap()

Creates and destroys cooked grass data stored in the map

Public function

TArray< uint...

 

RenderWPOHeightmap

(
    int32 LOD
)

Renders the heightmap of this component (including material world-position-offset) at the specified LOD

Public function

void

 

ReplaceLayer

(
    ULandscapeLayerInfoObject* Fro...,
    ULandscapeLayerInfoObject* ToL...,
    FLandscapeEditDataInterface& Lands...
)

Replaces one layerinfo on this component with another

Public function

void

 

RequestDeferredClientUpdate()

Public function

void

 

RequestEditingClientUpdate()

Public function

void

 

RequestHeightmapUpdate

(
    bool bUpdateAll,
    bool bUpdateCollision
)

Public function

void

 

RequestWeightmapUpdate

(
    bool bUpdateAll,
    bool bUpdateCollision
)

Public function

void

 

SerializeStateHashes

(
    FArchive& Ar
)

Serialize all hashes/guids that record the current state of this component

Public function

void

 

SetEditingLayer

(
    const FGuid& InEditingLayer
)

Public function

void

 

SetHeightmap

(
    UTexture2D* NewHeightmap
)

Public function

void

 

SetLightingGuid()

Public function

void

 

SetLOD

(
    bool bForced,
    int32 InLODValue
)

Public function

void

 

SetSectionBase

(
    FIntPoint InSectionBase
)

Public function

void

 

SetWeightmapLayerAllocations

(
    const TArray< FWeightmapLayerAlloca...
)

Public function

void

 

SetWeightmapTextures

(
    const TArray< UTexture2D* >& ...,
    bool InApplyToEditingWeightmap
)

Public function

void

 

SetWeightmapTexturesUsage

(
    const TArray< ULandscapeWeightmapUs...,
    bool InApplyToEditingWeightmap
)

Public function

void

 

UpdateCachedBounds

(
    bool bInApproximateBounds
)

Recalculate cached bounds using height values.

Public function

void

 

UpdateCollisionData

(
    bool bInUpdateHeightfieldRegion
)

Updates collision component height data for the entire component, locking and unlocking heightmap textures

Protected function

void

 

UpdateCollisionHeightBuffer

(
    int32 InComponentX1,
    int32 InComponentY1,
    int32 InComponentX2,
    int32 InComponentY2,
    int32 InCollisionMipLevel,
    int32 InHeightmapSizeU,
    int32 InHeightmapSizeV,
    const FColor*const InHeightmap...,
    uint16* CollisionHeightData,
    uint16* GrassHeightData,
    const FColor*const InXYOffsetT...,
    uint16* CollisionXYOffsetData
)

Public function

void

 

UpdateCollisionHeightData

(
    const FColor* HeightmapTexture...,
    const FColor* SimpleCollisionH...,
    int32 ComponentX1,
    int32 ComponentY1,
    int32 ComponentX2,
    int32 ComponentY2,
    bool bUpdateBounds,
    const FColor* XYOffsetTextureM...,
    bool bInUpdateHeightfieldRegion
)

Create or updates collision component height data

Public function

void

 

UpdateCollisionLayerData

(
    const FColor*const* Weigh...,
    const FColor*const*const ...,
    int32 ComponentX1,
    int32 ComponentY1,
    int32 ComponentX2,
    int32 ComponentY2
)

Update collision component dominant layer data

Public function

void

 

UpdateCollisionLayerData()

Update collision component dominant layer data for the whole component, locking and unlocking the weightmap textures.

Public function Static

void

 

UpdateDataMips

(
    int32 InNumSubsections,
    int32 InSubsectionSizeQuads,
    UTexture2D* Texture,
    TArray< uint8* >& TextureMipD...,
    int32 ComponentX1,
    int32 ComponentY1,
    int32 ComponentX2,
    int32 ComponentY2,
    FLandscapeTextureDataInfo* Tex...
)

Public function

void

 

UpdateDirtyCollisionHeightData

(
    FIntRect Region
)

Cumulates component's dirtied collision region that will need to be updated (used by Layer System)

Protected function

void

 

UpdateDominantLayerBuffer

(
    int32 InComponentX1,
    int32 InComponentY1,
    int32 InComponentX2,
    int32 InComponentY2,
    int32 InCollisionMipLevel,
    int32 InWeightmapSizeU,
    int32 InDataLayerIdx,
    const TArray< uint8* >& InCol...,
    const TArray< ULandscapeLayerInfoOb...,
    uint8* DominantLayerData
)

Public function

void

 

UpdatedSharedPropertiesFromActor()

Updates the values of component-level properties exposed by the Landscape Actor

Public function

void

 

UpdateEditToolRenderData()

Public function

void

 

UpdateLayerWhitelistFromPaintedLayers()

Update layer whitelist to include the currently painted layers.

Public function

void

 

UpdateMaterialInstances()

Update the MaterialInstance parameters to match the layer and weightmaps for this component Creates the MaterialInstance if it doesn't exist.

Public function

void

 

UpdateMaterialInstances

(
    FMaterialUpdateContext& InOutMater...,
    TArray< class FComponentRecreateRen...
)

Update the MaterialInstance parameters to match the layer and weightmaps for this component Creates the MaterialInstance if it doesn't exist.

Public function

void

 

UpdateMaterialInstances_Internal

(
    FMaterialUpdateContext& Context
)

Internal implementation of UpdateMaterialInstances, not safe to call directly.

Public function Static

void

 

UpdateMipsTempl

(
    int32 InNumSubsections,
    int32 InSubsectionSizeQuads,
    UTexture2D* WeightmapTexture,
    TArray< DataType* >& Weightma...,
    int32 ComponentX1,
    int32 ComponentY1,
    int32 ComponentX2,
    int32 ComponentY2,
    FLandscapeTextureDataInfo* Tex...
)

Update mipmaps for existing weightmap texture

Public function

void

 

UpdateNavigationRelevance()

Updates navigation properties to match landscape's master switch

Public function

void

 

UpdateRejectNavmeshUnderneath()

Updates the reject navmesh underneath flag in the collision component

Public function Static

void

 

UpdateWeightmapMips

(
    int32 InNumSubsections,
    int32 InSubsectionSizeQuads,
    UTexture2D* WeightmapTexture,
    TArray< FColor* >& WeightmapT...,
    int32 ComponentX1,
    int32 ComponentY1,
    int32 ComponentX2,
    int32 ComponentY2,
    FLandscapeTextureDataInfo* Tex...
)

Overridden from UPrimitiveComponent

Name Description

Public function Virtual Const

void

 

AddMapBuildDataGUIDs

(
    TSet< FGuid >& InGUIDs
)

Add the used GUIDs from UMapBuildDataRegistry::MeshBuildData.

Public function Virtual Const

bool

 

ComponentIsTouchingSelectionBox

(
    const FBox& InSelBBox,
    const FEngineShowFlags& ShowFlags,
    const bool bConsiderOnlyBSP,
    const bool bMustEncompassEntireComp...
)

Determines whether the supplied bounding box intersects with the component.

Public function Virtual Const

bool

 

ComponentIsTouchingSelectionFrustum

(
    const FConvexVolume& InFrustum,
    const FEngineShowFlags& ShowFlags,
    const bool bConsiderOnlyBSP,
    const bool bMustEncompassEntireComp...
)

Determines whether the supplied frustum intersects with the component.

Public function Virtual

FPrimitiveSc...

 

CreateSceneProxy()

Creates a proxy to represent the primitive to the scene manager in the rendering thread.

Public function Virtual Const

void

 

GetLightAndShadowMapMemoryUsage

(
    int32& LightMapMemoryUsage,
    int32& ShadowMapMemoryUsage
)

Returns the light and shadow map memory for this primitive in its out variables.

Public function Virtual Const

bool

 

GetLightMapResolution

(
    int32& Width,
    int32& Height
)

Returns the lightmap resolution used for this primitive instance in the case of it supporting texture light/ shadow maps.

Public function Virtual Const

UMaterialInt...

 

GetMaterial

(
    int32 ElementIndex
)

Returns the material used by the element at the specified index

Public function Virtual Const

int32

 

GetNumMaterials()

Return number of material elements in this primitive

Public function Virtual Const

TArray< URun...

 

GetRuntimeVirtualTextures()

Get the array of runtime virtual textures into which we render the mesh for this actor.

Public function Virtual Const

ELightMapInt...

 

GetStaticLightingType()

Requests whether the component will use texture, vertex or no lightmaps.

Public function Virtual Const

int32

 

GetStaticLightMapResolution()

Returns the static lightmap resolution used for this primitive.

Public function Virtual Const

void

 

GetStreamingRenderAssetInfo

Enumerates the streaming textures/meshes used by the primitive.

Public function Virtual Const

void

 

GetUsedMaterials

(
    TArray< UMaterialInterface* > ...,
    bool bGetDebugMaterials
)

Retrieves the materials used in this component

Public function Virtual Const

ERuntimeVirt...

 

GetVirtualTextureRenderPassType()

Get the runtime virtual texture pass settings.

Public function Virtual

void

 

SetMaterial

(
    int32 ElementIndex,
    UMaterialInterface* Material
)

Changes the material applied to an element of the mesh.

Protected function Virtual Const

bool

 

SupportsStaticLighting()

Whether the component type supports static lighting.

Overridden from USceneComponent

Name Description

Public function Virtual Const

FBoxSphereBo...

 

CalcBounds

(
    const FTransform& LocalToWorld
)

Calculate the bounds of the component. Default behavior is a bounding box/sphere of zero size.

Public function Virtual Const

bool

 

IsPrecomputedLightingValid()

True if our precomputed lighting is up to date

Public function Virtual

void

 

PreFeatureLevelChange

(
    ERHIFeatureLevel::Type PendingFeatu...
)

Called to update any visuals needed for a feature level change

Public function Virtual

void

 

PropagateLightingScenarioChange()

Updates any visuals after the lighting has changed

Overridden from UActorComponent

Name Description

Public function Virtual

void

 

DestroyComponent

(
    bool bPromoteChildren
)

Unregister the component, remove it from its outer Actor's Components array and mark for pending kill.

Public function Virtual

void

 

InvalidateLightingCacheDetailed

(
    bool bInvalidateBuildEnqueuedLighti...,
    bool bTranslationOnly
)

Called when this actor component has moved, allowing it to discard statically cached lighting information.

Public function Virtual

void

 

OnRegister()

Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called.

Public function Virtual

void

 

OnUnregister()

Called when a component is unregistered.

Overridden from UObject

Name Description

Public function Virtual

void

 

BeginCacheForCookedPlatformData

(
    const ITargetPlatform* TargetP...
)

Starts caching of platform specific data for the target platform Called when cooking before serialization so that object can prepare platform specific data Not called during normal loading of objects

Public function Virtual

void

 

BeginDestroy()

Called before destroying the object.

Public function Virtual

void

 

ExportCustomProperties

(
    FOutputDevice& Out,
    uint32 Indent
)

Exports the property values for the specified object as text to the output device.

Public function Virtual

void

 

GetResourceSizeEx

(
    FResourceSizeEx& CumulativeResourc...
)

Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the extended version which separates up the used memory into different memory regions (the actual definition of which may be platform specific).

Public function Virtual

void

 

ImportCustomProperties

(
    const TCHAR* SourceText,
    FFeedbackContext* Warn
)

Exports the property values for the specified object as text to the output device.

Public function Virtual

void

 

PostDuplicate

(
    bool bDuplicateForPIE
)

Called after duplication & serialization and before PostLoad.

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent& PropertyCha...
)

Called when a property on this object has been modified externally

Public function Virtual

void

 

PostEditUndo()

Called after applying a transaction to the object.

Public function Virtual

void

 

PostInitProperties()

Called after the C++ constructor and after the properties have been initialized, including those loaded from config.

Public function Virtual

void

 

PostLoad()

Do any object-specific cleanup required immediately after loading an object.

Public function Virtual

void

 

PreEditChange

(
    FProperty* PropertyAboutToChan...
)

This is called when a property is about to be modified externally

Public function Virtual

void

 

Serialize

(
    FArchive& Ar
)

Handles reading, writing, and reference collecting using FArchive.

Deprecated Variables

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss