Colour Switching

Using the Colour Switching of this module, you are able to change the following attributes. Please note that this Actions affect ALL colours or ALL Game Objects in a scene by applying a post processing filter to the Main Camera. The attributes avaliable to change are:

  • Original Colour

  • New Colour

  • Tolerance

  • Feathering

You can change up to 4 colours within the scene. These can be switched on an off using a single Action, but individual Actions cannot be used for each colour.

Before you start using the of the Colour Switching Action, you must add the Camera Colour Switcher Script to the Main Camera. This can be done manually by dragging the Script from the components folder directly to the main camera game object.

Or by selecting the Component from the Component/Game Creator/Accessibilty menu.

You can verify that this has been completed by viewing the Main Camera in the Unity Inspector Window. You only need one instance of this script in the scene, or if you have more than one Camera (not Camera Motors) and wish to apply the filters to each, then each camera will need the component.

The settings available using the Colour Switching Action are as follows;

  • Original Colour: Selected Colour.

  • New Colour: Selected Colour.

  • Tolerance: from 0 to 1 (must be more than zero for colour to be swapped)

  • Feathering: from 0 to 0.5 (must be more than zero for colour to be swapped)

These values can be set in the Inspector using the Colour Selector or Slider, or can be obtained from a GC Variable. Up to 4 Colours can be switched by clicking the Enable Swap check box.

However, you must also Trigger the Enable Switching Colours Actions first. This can also be done in the Inspector or by using a Variable. This Action can also be used to turn off Colour Switching and revert all colours to their original state.

By using Variables, you can combine these with a GC Slider in a UI Canvas, and allow the player to set their own preferences.

See the Examples Scenes and Settings Canvas provided with this Module.

Last updated

Was this helpful?