There is no spoon
UE3:MeshComponent (UDK)
From Unreal Wiki, The Unreal Engine Documentation Site
| Object >> Component >> ActorComponent >> PrimitiveComponent >> MeshComponent |
Contents |
- Package:
- Engine
- Direct subclasses:
- SkeletalMeshComponent, StaticMeshComponent
- This class in other games:
- UT3
| This is an auto-generated page and may need human attention. Please remove this tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
[edit] Properties
[edit] Property group 'Rendering'
[edit] Materials
Type: array<MaterialInterface>
Modifiers: const
Per-Component material overrides. These must NOT be set directly or a race condition can occur between GC and the rendering thread.
[edit] Default values
| Property | Value |
|---|---|
| bAcceptsLights | True |
| bCullModulatedShadowOnBackfaces | True |
| bCullModulatedShadowOnEmissive | True |
| bUseAsOccluder | True |
| CastShadow | True |
[edit] Functions
[edit] Native functions
[edit] GetMaterial
native function MaterialInterface GetMaterial (int ElementIndex)
Parameters:
- ElementIndex - The element to access the material of.
Returns:
- the material used by the indexed element of this mesh.
[edit] GetNumElements
native function int GetNumElements ()
Returns:
- The total number of elements in the mesh.
[edit] PrestreamTextures
Tell the streaming system to start loading all textures with all mip-levels.
Parameters:
- Seconds - Number of seconds to force all mip-levels to be resident
- bPrioritizeCharacterTextures - Whether character textures should be prioritized for a while by the streaming system
[edit] SetMaterial
native function SetMaterial (int ElementIndex, MaterialInterface Material)
Changes the material applied to an element of the mesh.
Parameters:
- ElementIndex - The element to access the material of.
Returns:
- the material used by the indexed element of this mesh.
[edit] Other instance functions
[edit] CreateAndSetMaterialInstanceConstant
function MaterialInstanceConstant CreateAndSetMaterialInstanceConstant (int ElementIndex)
Creates a material instance for the specified element index. The parent of the instance is set to the material being replaced.
Parameters:
- ElementIndex - The index of the skin to replace the material for.
[edit] CreateAndSetMaterialInstanceTimeVarying
function MaterialInstanceTimeVarying CreateAndSetMaterialInstanceTimeVarying (int ElementIndex)
Creates a material instance for the specified element index. The parent of the instance is set to the material being replaced.
Parameters:
- ElementIndex - The index of the skin to replace the material for.
