Documentation & Tutorials
  • Pivec Labs Documentation & Tutorials
  • Assets for Game Creator 1
    • Action Pack 1
      • Action List
        • Misc Actions
        • Object Actions
        • TMP Actions
      • Examples
        • Example 1 TMP
        • Example 2 Objects
        • Example 3 Actions
    • Action Pack 2
      • Action List
        • Camera Actions
        • Graphics Actions
        • Audio Actions
        • Video Actions
      • Triggers
      • Components
      • Examples
        • Example 1 - Camera
        • Example 2 - Camera FPS
        • Example 3 - Graphics
        • Example 4 - Sounds
        • Example 5 - Audio Player
        • Example 6 - Video Player
    • Action Pack 3
      • Action List
        • Day/Night Cycle
        • Light Control
      • Components
      • Examples
        • Example 1 - Day Night Cycle
        • Example 2 - Light Control
    • Accessibility Module
      • Components
      • Setup
      • Auditory Aids
        • Closed Captions for Sounds
        • Volume Control with Tags
        • Multiple Volume Controls
      • Motoric Aids
        • Configurable Tank Camera
        • On-Screen Multi-Function Joystick
        • Dynamic Touchstick
        • Multi-Function Touchstick
      • Cognitive Aids
        • Parental Controls with Password
        • Dyslexia Font Options
        • Motion Sickness Prevention
        • Gameplay Speed and Sensitivity
      • Visual Aids
        • Colour Picker
        • Variable Text Size
        • Object Outlining
        • Colour Switching
        • Colour Correction
    • Mobile Components
      • Actions
        • Haptics
        • Camera
        • TouchSticks
        • Gyroscope
        • Utilities
      • Triggers
        • Touch Gestures
      • Conditions
      • Components
      • Prefabs
      • Examples
        • Example 1 Haptics
        • Example 2 Cameras
        • Example 3 Gestures
        • Example 4 Controls
        • Example 5 Steering Wheel/Pedals
        • Example 6 Gyroscope Controls
        • Example 7 Gyroscope Camera
        • Example 8 Utilities
        • Example 9 AutoRun
      • Extras
    • UI Components
      • Canvas Components
        • Canvas Animations
        • 3D Models on a Canvas
        • Video on a Canvas
      • Animating UI Elements
        • Cross Fade Elements
        • Slide Elements
        • Shake UI Element
        • Tooltips
      • Text Mesh Pro & uGUI Text
      • Colour Picker Component
      • Mini Map Component
        • MiniMap QuickStart
        • Fullscreen Map
        • Adding Markers
        • Adding Labels
      • System Info Panel
        • SysInfo Quickstart
        • Using SysInfo Toggle
      • Main Menu Templates
        • Customising the Prefabs
        • Load/Save System
        • Comic Strip Example
    • Developer Tools
      • Time Manager
        • Actions & Conditions
      • Waypoint System
      • Click to Spawn Objects
      • In-Game Console
      • In-Game Screen Capture
    • Turn Based Module
    • VR Module GC1
  • Assets for Unity
    • Developer Tools for Unity
      • Click to Spawn
      • In-Game Screen Capture
      • In-Game Console
    • Mini Map System
      • MiniMap Quickstart
      • Map Parameters
      • Adding Makers
  • Tutorials
    • Tutorials for Game Creator 1
      • Installing and Updating Modules
      • Adding Actions to the Button Bar
      • Changing the Graphics for TouchStick
      • Adding Passwords to Player Actions
      • Using the Colour Picker with Variables
      • Creating a 3D Inspection Panel for Game Objects
      • Customising the UI MiniMap
      • Creating a toggle for the SysInfo Panel
      • Simple Player Run on Left Shift Down
      • Pan Follow Camera with Keyboard
    • Tutorials for Unity
  • ANNEX
    • Roadmap
    • FAQ
Powered by GitBook
On this page

Was this helpful?

  1. Assets for Game Creator 1
  2. Accessibility Module
  3. Visual Aids

Colour Switching

PreviousObject OutliningNextColour Correction

Last updated 5 years ago

Was this helpful?

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.

Up to 4 Colours can be swapped and this is applied when the scene is rendered for display.

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 Camera Colour Switching Component must be applied to the Main Camera for these Actions to work. However, if you enable an Action without applying the Camera Component, the Action will attempt to do it for you.

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.

Either the Tolerance value or Feathering value must be set for any Colour to be switched.

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.

Recommended Settings for players with Visual impairments:

  • Colour: Green to Blue

  • Colour: Yellow to Orange

  • Colour: Red to Yellow

  • Tolerance (for each colour): 0.05

  • Feathering (for each colour): 0.03

Or allow the player to choose their own values using an in-game settings panel.

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

A Colour Switching Shader is also provided and is found in the Resources Folder. This is automatically included in your build.