The result when no element's mCondition is true. It is evaluated on every call, also when an element is chosen.
SwitchMaterialDriver
Inheritance 1 ancestor · 20 siblings · 1 descendant
- ILogicDriver
- 0xf7665f1a (removed in patch 16.1)
- ColorChooserMaterialDriver
- ColorGraphMaterialDriver
- EasedVector4ConceptLogicDriver
- EmptyLogicDriver
- Float4FromLogicDrivers
- Float4LiteralMaterialDriver
- ILogicFloatDriver117
- ILogicVector2Driver1
- ILogicVector3Driver8
- LerpVec4LogicDriver
- MaxMaterialDriver
- MinMaterialDriver
- PlayerPositionDynamicMaterialDriver
- RawVector4ConceptLogicDriver
- RemapVec4MaterialDriver
- SequenceMaterialVectorDriver
- SpecificColorMaterialDriver
- SwitchMaterialDrivercurrent
- TftTeamCannonMaterialDriver
- UVScaleBiasFromAnimationDynamicMaterialDriver
Class Documentation
Edit documentationA vector driver that returns the value of the first element
whose condition is true. Each element of mElements is a SwitchMaterialDriverElement
that pairs a bool driver mCondition with a driver
mValue. The driver returns the mValue of the first element in list order whose
mCondition is true. When no condition is true, it returns mDefaultValue.
A value can be a driver of any kind. A float value fills all four components, so a switch over float values works as a float switch.
Properties
The elements, in priority order. The first element in list order whose mCondition is true is chosen.