StaticMeshComponent
Class in Engine · Engine.StaticMeshComponent · native, editinlinenew
Object › Component › ActorComponent › PrimitiveComponent › MeshComponent › StaticMeshComponent
Subclasses: CoverMeshComponent, FracturedBaseComponent, ImageBasedReflectionComponent, InstancedStaticMeshComponent, InteractiveFoliageComponent, SplineMeshComponent
Using it from Lua
h7.find_all("StaticMeshComponent") -- live instances
h7.find_class("Engine.StaticMeshComponent") -- the class
h7.hook("Engine.StaticMeshComponent.CanBecomeDynamic", fn)
Enums
ELightmapModificationFunction
MLMF_Modulate = 0, MLMF_ModulateAlpha = 1
Structs
PaintedVertex
StaticMeshComponentLODInfo
| Field | Type |
ShadowMaps | array<ShadowMap2D> |
ShadowVertexBuffers | array<Object> |
LightMap | pointer |
OverrideVertexColors | pointer |
PaintedVertices | array<PaintedVertex> |
Properties
| Name | Type | Notes |
bCanHighlightSelectedSections | bool | transient |
bForceStaticDecals | bool | const, transient |
bIgnoreInstanceForTextureStreaming | bool | |
bNeverBecomeDynamic | bool | |
bOverrideLightMapRes | bool | const |
bOverrideLightMapResolution | bool | const |
bUseSimpleLightmapModifications | bool | |
bUseSubDivisions | bool | const |
ForcedLodModel | int | |
IrrelevantLights | array<Guid> | const |
LightmassSettings | LightmassPrimitiveSettings | |
LODData | array<StaticMeshComponentLODInfo> | const, native, private |
OverriddenLightMapRes | int | const |
OverriddenLightMapResolution | int | const |
OverriddenLODMaxRange | float | |
PreviousLODLevel | int | |
SimpleLightmapModificationFunction | ELightmapModificationFunction | |
SimpleLightmapModificationTexture | texture | |
StaticMesh | StaticMesh | const |
StreamingDistanceMultiplier | float | |
SubDivisionStepSize | int | const |
VertexPositionVersionNumber | int | const, private |
WireframeColor | Color | |
Functions
| Name | Declaration |
CanBecomeDynamic | native function bool CanBecomeDynamic() |
DisableRBCollisionWithSMC | native simulated function DisableRBCollisionWithSMC(PrimitiveComponent OtherSMC, bool bDisabled) |
SetForceStaticDecals | final native function SetForceStaticDecals(bool bInForceStaticDecals) |
SetStaticMesh | native simulated function bool SetStaticMesh(StaticMesh NewMesh, optional bool bForce) |
Default values
TickGroup=TG_PreAsyncWork
CollideActors=True
BlockActors=True
BlockZeroExtent=True
BlockNonZeroExtent=True
BlockRigidBody=True
WireframeColor=(R=0,G=255,B=255,A=255)
bAcceptsStaticDecals=TRUE
bAcceptsDecals=TRUE
bOverrideLightMapResolution=TRUE
OverriddenLightMapResolution=0
bOverrideLightMapRes=FALSE
OverriddenLightMapRes=64
bUsePrecomputedShadows=FALSE
SubDivisionStepSize=32
bUseSubDivisions=TRUE
bForceStaticDecals=FALSE
bCanHighlightSelectedSections=false
StreamingDistanceMultiplier=1.0
Inherited