conditionalcolorswitcher - eisclimber/ExPresS-XR GitHub Wiki

ConditionalColorSwitcher

Class in ExPresSXR.Misc.ColorSwitching

Inherits from ColorSwitcher

Summary

Provides the option to switch materials of a renderer.

It is highly recommended to use a ColorAnimationSwitcher instead.

public class ConditionalColorSwitcher : ColorSwitcher

Methods

Name Description
SwitchMaterialWithBool() Switches materials to either the original or alternative material according to 'SwitchToOriginal'.

Properties

Name Description
SwitchToOriginal Setting this bool controls if 'SwitchMaterialWithBool()' switches to the original or alternative material.
⚠️ **GitHub.com Fallback** ⚠️