UE2:MaterialSwitch (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 00:30, 11 August 2009 by Wormbo (talk | contribs) (same as UT2004 version, except for last Trigger() parameter)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
U2XMP Object >> Material >> Modifier >> MaterialSwitch
Package:
Engine
This class in other games:

A trigger-advanced list of materials.

Properties[edit]

Property group 'MaterialSwitch'[edit]

Current[edit]

Type: int

Modifiers: transient

The current material from the Materials list.

Materials[edit]

Type: array<Material>

Modifiers: editinlineuse

The list of available materials.

Instance functions[edit]

Reset[edit]

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[edit]

function Trigger (Actor Other, Actor EventInstigator, optional name EventName)

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.