Gah - a solution with more questions. – EntropicLqd
Difference between revisions of "UE2:MaterialSwitch (UT2004)"
From Unreal Wiki, The Unreal Engine Documentation Site
(Auto-generated page) |
m (added descriptions) |
||
Line 5: | Line 5: | ||
| parent3 = Object | | parent3 = Object | ||
}} | }} | ||
− | + | A trigger-advanced list of materials. | |
− | + | ||
==Properties== | ==Properties== | ||
Line 15: | Line 14: | ||
'''[[Variables#Modifiers|Modifiers]]:''' transient | '''[[Variables#Modifiers|Modifiers]]:''' transient | ||
− | + | The current material from the {{tl|Materials}} list. | |
====Materials==== | ====Materials==== | ||
Line 22: | Line 21: | ||
'''[[Variables#Modifiers|Modifiers]]:''' editinlineuse | '''[[Variables#Modifiers|Modifiers]]:''' editinlineuse | ||
− | + | The list of available materials. | |
==Instance functions== | ==Instance functions== | ||
Line 30: | Line 29: | ||
'''Overrides:''' {{tl|Reset|Modifier}} | '''Overrides:''' {{tl|Reset|Modifier}} | ||
− | + | 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}} | ||
− | + | 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
- 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
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
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.