The Demo Project
Running the scn_SemanticColorPaletteDemo
scene in the Unity Editor is a good
way to familiarize with the system concepts and functionalities.
A video is also available:
Importing and opening the Demo
- Select
Window > Package manager
to open the package manager window. Select the
Semantic Color Palette
package and you will find aSamples
section after the package description, in the right panel of the package manager window. Click theImport
button:Open the scene
scn_SemanticColorPaletteDemo.unity
inAssets\Samples\Semantic Color Palette\1.1.0\Demo\Runtime\Scenes
.
We suggest to explore carefully each panel, reading the on-screen text, playing
with the Runtime Manager UI
and analyzing the scene hierarchy and the linked
assets in the Unity Editor.
For a better experience, the Game
window should be set to 16:9 Aspect
when
running the demo.
Here's a summary of the demo panels:
basic
- demostrates the system basic usage, with one Palette Provider handling a single Palette, and a few Colorers configured on standard Unity UI components.
variants
- demonstrates palette variants, showing as example a light/dark mode switch, still on standard Unity UI components.
forced variants
- demonstrates the override mechanism for palette variants, following up from the previous panel.
advanced
- shows a more complicated setup, with multiple Palette Providers, multiple Palettes and the use of Colorers acting on Materials, which requires some extra care.
TextMeshPro support
- demonstrates how the system supports
TextMeshPro
components.
- demonstrates how the system supports
custom provider
- presents a
FadingPaletteProvider
, showing an example of how to extend the system with custom Palette Providers (changing the way Palettes are provided to Colorers).
- presents a
custom colorer
- shows examples of how to extend the system with custom Colorers, changing how Palettes are actually used.
code only
- shows a procedural scene where the system is used through scripting only.
extras
- mentions other available features not discussed in the demo.