Effects such as the glow effect from the previous recipe are often features we wish to toggle on and off under different circumstances. The effect could be turned on or off during a game to visually communicate the status of a GameObject—for example, an angry character might glow red, while a happy monster might glow green, and so on.
We'll add to the previous recipe to create a new publicly exposed Shader Graph Blackboard property named Power, and write code that can be used to set this value to zero or five in order to turn the glow effect on and off. We'll also access the Color property so that we're able to set what color the glow effect displays.