I love the smell of UnrealEd crashing in the morning. – tarquin
Legacy:MaterialSequence
Category:Legacy Class (UT2003)
Contents
Properties[edit]
MaterialSequence Group[edit]
- bool Loop
- Whether the sequence should be repeated once it finished.
- bool Paused
- Whether the sequence is currently stoppen.
- array<MaterialSequenceItem> SequenceItems
- EMaterialSequenceTriggerActon TriggerAction
- What to do when the MaterialSequence is triggered.
UnrealScript-Only Properties[edit]
- float CurrentTime (transient)
- float LastTime (transient)
- float TotalTime
Structs[edit]
MaterialSequenceItem[edit]
struct native MaterialSequenceItem { var() editinlineuse Material Material; var() float Time; var() EMaterialSequenceAction Action; };
- Material Material
- The material to fade in or display.
- float Time
- How long the material is displayed or how long it takes to blend over from the previous material.
- EMaterialSequenceAction Action
- Whether to crossfade to this material or to just display it.
Enums[edit]
EMaterialSequenceAction[edit]
- MSA_ShowMaterial
- Just display this material.
- MSA_FadeToMaterial
- Crossfade from the previous material to this material.
EMaterialSequenceTriggerActon[edit]
- MSTA_Ignore
- Not triggerable.
- MSTA_Reset
- Reset the MaterialSequence.
- MSTA_Pause
- Toggle between stopping and playing the sequence.
- MSTA_Stop
- Stop the sequence.
Methods[edit]
Inherited From Material[edit]
- Reset ( )
- Resets the MaterialSequence and restores the default value of
Paused
. - Trigger (Actor Other, Actor EventInstigator)
- Triggers the MaterialSequence according to the value of the
Action
property. (see EMaterialSequenceTriggerActon enum above)
Unfallzeuge: I just found out, that material-sequences only work on static meshes and NOT on brushes - (you'll see just a solid colour). Take care that the orientation of your polygons (of your mesh) is right, flip them or make a 2-sided material to show the material-sequence properly.
LionsPhil: Actually, if you get the camera reeeally close, it appears that the scaling goes all wrong in the game and you get many tiny repetitions of your texture (as if you'd set the scale to some very small number). Bizzarely, it's fine in the editor itself.
Fisholith: Solution! After playing around with the use of material sequences on BSP in a level, I found that if you scale them by x1024 they look exactly like a x1 scale normal texture. That is to say, whatever normal texture-scale you want a "Material Sequence" texture to appear at, (e.g. 0.5), just multiply that number by 1024, and use the resulting value to scale the material sequence texture (e.g. 0.5 * 1024 = 512). I hope this helps out. Take care everyone.