Skip to content

MeshComponent

Class in Engine · Engine.MeshComponent · native, abstract

Object › Component › ActorComponent › PrimitiveComponent › MeshComponent

Subclasses: ApexComponentBase, SkeletalMeshComponent, StaticMeshComponent

Using it from Lua
h7.find_all("MeshComponent")            -- live instances
h7.find_class("Engine.MeshComponent")   -- the class
h7.hook("Engine.MeshComponent.CreateAndSetMaterialInstanceConstant", fn)

Properties

NameTypeNotes
Materialsarray<MaterialInterface>const

Functions

NameDeclaration
CreateAndSetMaterialInstanceConstantfunction MaterialInstanceConstant CreateAndSetMaterialInstanceConstant(int ElementIndex)
CreateAndSetMaterialInstanceTimeVaryingfunction MaterialInstanceTimeVarying CreateAndSetMaterialInstanceTimeVarying(int ElementIndex)
GetMaterialnative function MaterialInterface GetMaterial(int ElementIndex)
GetNumElementsnative function int GetNumElements()
PrestreamTexturesfinal native function PrestreamTextures(float Seconds, bool bPrioritizeCharacterTextures, optional int CinematicTextureGroups = 0)
SetMaterialnative function SetMaterial(int ElementIndex, MaterialInterface Material)

Default values

CastShadow=TRUE
bAcceptsLights=TRUE
bUseAsOccluder=TRUE

Inherited

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