conditionalcolorswitcher - eisclimber/ExPresS-XR GitHub Wiki
Class in ExPresSXR.Misc.ColorSwitching
Inherits from ColorSwitcher
Provides the option to switch materials of a renderer.
It is highly recommended to use a ColorAnimationSwitcher instead.
public class ConditionalColorSwitcher : ColorSwitcher| Name | Description |
|---|---|
| SwitchMaterialWithBool() | Switches materials to either the original or alternative material according to 'SwitchToOriginal'. |
| Name | Description |
|---|---|
| SwitchToOriginal | Setting this bool controls if 'SwitchMaterialWithBool()' switches to the original or alternative material. |