I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX

UE3:StaticMeshComponent (UDK)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 06:24, 17 January 2010 by (Talk)

Jump to: navigation, search
UDK Object >> Component >> ActorComponent >> PrimitiveComponent >> MeshComponent >> StaticMeshComponent
Package: 
Engine
Direct subclasses:
CoverMeshComponent, FracturedBaseComponent, InstancedStaticMeshComponent, MaterialEditorMeshComponent, SplineMeshComponent, UTGibStaticMeshComponent, InteractiveFoliageComponent
This class in other games:
UT3


Properties

Property group 'AdvancedLighting'

bUseSubDivisions

Type: bool

Modifiers: const

Whether to use subdivisions or just the triangle's vertices.

Default value: True

SubDivisionStepSize

Type: int

Modifiers: const

Subdivision step size for static vertex lighting.

Default value: 32

Property group 'Lightmass'

LightmassSettings

Type: EngineTypes.LightmassPrimitiveSettings

The Lightmass settings for this object.

Default value:

Member Value
DiffuseBoost 1.0
EmissiveBoost 1.0
EmissiveLightFalloffExponent 2.0
FullyOccludedSamplesFraction 1.0
SpecularBoost 1.0

Property group 'StaticMeshComponent'

bIgnoreInstanceForTextureStreaming

Type: bool

Ignore this instance of this static mesh when calculating streaming information. This can be useful when doing things like applying character textures to static geometry, to avoid them using distance-based streaming.

bOverrideLightMapRes

Type: bool

Modifiers: const

Whether to override the lightmap resolution defined in the static mesh.

ForcedLodModel

Type: int

If 0, auto-select LOD level. if >0, force to (ForcedLodModel-1).

OverriddenLightMapRes

Type: int

Modifiers: const

Light map resolution used if bOverrideLightMapRes is TRUE

Default value: 64

StaticMesh

Type: StaticMesh

Modifiers: const


WireframeColor

Type: Object.Color


Default value:

Member Value
A 255
B 255
G 255
R 0

Internal variables

bForceStaticDecals

Type: bool

Modifiers: const, transient

if True then decals will always use the fast path and will be treated as static wrt this mesh

bOverrideLightMapResolution

Type: bool

Modifiers: deprecated, const

Deprecated. Replaced by 'bOverrideLightMapRes'.

Default value: True

IrrelevantLights

Type: array<Object.Guid>

Modifiers: const


LODData

Type: array<StaticMeshComponentLODInfo>

Modifiers: native, serializetext, private, const

Static mesh LOD data. Contains static lighting data along with instanced mesh vertex colors.

OverriddenLightMapResolution

Type: int

Modifiers: deprecated, const

Deprecated. Replaced by 'OverriddenLightMapRes'.

PreviousLODLevel

Type: int

Previous LOD level

Default values

Property Value
bAcceptsDecals True
bAcceptsStaticDecals True
BlockActors True
BlockNonZeroExtent True
BlockRigidBody True
BlockZeroExtent True
CollideActors True
TickGroup TG_PreAsyncWork

Structs

StaticMeshComponentLODInfo

array<ShadowMap2D> ShadowMaps 
array<Object> ShadowVertexBuffers 
pointer{FLightMap} LightMap 
array<Object.Color> OverrideVertexColors 
Vertex colors to use for this mesh LOD

Native functions

DisableRBCollisionWithSMC

simulated native function DisableRBCollisionWithSMC (StaticMeshComponent OtherSMC, bool bDisabled)

Disables physics collision between a specific pair of meshes.

SetForceStaticDecals

native final function SetForceStaticDecals (bool bInForceStaticDecals)

Changes the value of bForceStaticDecals.

Parameters:

  • bInForceStaticDecals - The value to assign to bForceStaticDecals.

SetStaticMesh

simulated native function bool SetStaticMesh (StaticMesh NewMesh, optional bool bForce)

Change the StaticMesh used by this instance.