Skip to content

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

FieldType
Positionvector
Normalpackednormal
Colorcolor

StaticMeshComponentLODInfo

FieldType
ShadowMapsarray<ShadowMap2D>
ShadowVertexBuffersarray<Object>
LightMappointer
OverrideVertexColorspointer
PaintedVerticesarray<PaintedVertex>

Properties

NameTypeNotes
bCanHighlightSelectedSectionsbooltransient
bForceStaticDecalsboolconst, transient
bIgnoreInstanceForTextureStreamingbool
bNeverBecomeDynamicbool
bOverrideLightMapResboolconst
bOverrideLightMapResolutionboolconst
bUseSimpleLightmapModificationsbool
bUseSubDivisionsboolconst
ForcedLodModelint
IrrelevantLightsarray<Guid>const
LightmassSettingsLightmassPrimitiveSettings
LODDataarray<StaticMeshComponentLODInfo>const, native, private
OverriddenLightMapResintconst
OverriddenLightMapResolutionintconst
OverriddenLODMaxRangefloat
PreviousLODLevelint
SimpleLightmapModificationFunctionELightmapModificationFunction
SimpleLightmapModificationTexturetexture
StaticMeshStaticMeshconst
StreamingDistanceMultiplierfloat
SubDivisionStepSizeintconst
VertexPositionVersionNumberintconst, private
WireframeColorColor

Functions

NameDeclaration
CanBecomeDynamicnative function bool CanBecomeDynamic()
DisableRBCollisionWithSMCnative simulated function DisableRBCollisionWithSMC(PrimitiveComponent OtherSMC, bool bDisabled)
SetForceStaticDecalsfinal native function SetForceStaticDecals(bool bInForceStaticDecals)
SetStaticMeshnative 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

FromMembers
MeshComponent1 properties, 6 functions
PrimitiveComponent107 properties, 46 functions
ActorComponent7 properties, 4 functions
Component2 properties, 0 functions
Object13 properties, 308 functions