Once I get that upgrade to 36-hour days, I will tackle that. – Mychaeel

UE3:MeshComponent (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT3 Object >> Component >> ActorComponent >> PrimitiveComponent >> MeshComponent
Package: 
Engine
Direct subclasses:
SkeletalMeshComponent, StaticMeshComponent
This class in other games:
UDK

Copyright 1998-2007 Epic Games, Inc. All Rights Reserved.

Properties[edit]

Property group 'Rendering'[edit]

Materials[edit]

Type: array<MaterialInterface>

Modifiers: const


Default values[edit]

Property Value
bAcceptsLights True
bUseAsOccluder True
CastShadow True

Functions[edit]

Native functions[edit]

GetMaterial[edit]

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.

GetNumElements[edit]

native function int GetNumElements ()

Returns:

The total number of elements in the mesh.

SetMaterial[edit]

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.

Other instance functions[edit]

CreateAndSetMaterialInstanceConstant[edit]

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.

CreateAndSetMaterialInstanceTimeVarying[edit]

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.