Gah - a solution with more questions. – EntropicLqd

UE2:MaterialSwitch (UE2Runtime)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 09:12, 17 May 2008 by Wormbo (Talk | contribs) (Auto-generated page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
UE2Runtime Object >> Material >> Modifier >> MaterialSwitch
Package: 
Engine
This class in other games:
U2XMP, UT2003, U2, UT2004

A trigger-advanced list of materials.

Properties

Property group 'MaterialSwitch'

Current

Type: int

Modifiers: transient

The current material from the Materials list.

Materials

Type: array<Material>

Modifiers: editinlineuse

The list of available materials.

Instance functions

Reset

function Reset ()

Overrides: Modifier.Reset

Resets to the first material in the Materials list. Also resets that first material and the FallbackMaterial. Note that other materials in the list will not be reset.

Trigger

function Trigger (Actor Other, Actor EventInstigator)

Overrides: Modifier.Trigger

Switches to the next material in the Materials list. If the end of the list is reached, the first material is switched to.

The new material and the FallbackMaterial are triggered as well.