Documentation

Page contents

Updated

Generate PDF from page.

Theme Definition Scriptable

Files: CGFThemeDefinitionScriptable.cs

Path: "CGF/Systems/Themes"

Description

Scriptable object that defines a theme for the CGF. It contains various color properties and a method to retrieve colors by key.

Reference

  • Colors List – List of additional colors.
    • Key – Key to identify the color (e.g., "Primary", "Secondary", etc.).
    • Value – Theme color assigned to the matching key.
  • Sprites List – List of additionals sprites.
  • Theme – Manages theme selection. See Common Features / Theme.

Use

Create or assign the ScriptableObject asset in the system that consumes this shared configuration.
Configure the asset fields listed in Reference before using it at runtime.