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

Difference between revisions of "UE2:MaterialSwitch (UT2004)"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
(Auto-generated page)
 
m (added descriptions)
Line 5: Line 5:
 
| parent3 = Object
 
| parent3 = Object
 
}}
 
}}
{{autogenerated}}
+
A trigger-advanced list of materials.
null
+
  
 
==Properties==
 
==Properties==
Line 15: Line 14:
 
'''[[Variables#Modifiers|Modifiers]]:''' transient
 
'''[[Variables#Modifiers|Modifiers]]:''' transient
  
<!-- enter variable description -->
+
The current material from the {{tl|Materials}} list.
  
 
====Materials====
 
====Materials====
Line 22: Line 21:
 
'''[[Variables#Modifiers|Modifiers]]:''' editinlineuse
 
'''[[Variables#Modifiers|Modifiers]]:''' editinlineuse
  
<!-- enter variable description -->
+
The list of available materials.
  
 
==Instance functions==
 
==Instance functions==
Line 30: Line 29:
 
'''Overrides:''' {{tl|Reset|Modifier}}
 
'''Overrides:''' {{tl|Reset|Modifier}}
  
<!-- enter function description -->
+
Resets to the first material in the {{tl|Materials}} list. Also resets that first material and the {{tl|FallbackMaterial||Material}}. Note that other materials in the list will not be reset.
  
 
====Trigger====
 
====Trigger====
Line 37: Line 36:
 
'''Overrides:''' {{tl|Trigger|Modifier}}
 
'''Overrides:''' {{tl|Trigger|Modifier}}
  
<!-- enter function description -->
+
Switches to the next material in the {{tl|Materials}} list. If the end of the list is reached, the first material is switched to.
 +
 
 +
The new material and the {{tl|FallbackMaterial||Material}} are triggered as well.

Revision as of 00:28, 11 August 2009

UT2004 Object >> Material >> Modifier >> MaterialSwitch
Package: 
Engine
This class in other games:
U2XMP, UE2Runtime, UT2003, U2

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.