Class GameTagSO
- Namespace
- ElectricDrill.AstraRpgFramework.Tags
- Assembly
- com.electricdrill.astra-rpg-framework.Runtime.dll
Lightweight typed tag identifier. Use as a ScriptableObject reference to tag game entities, modifiers, abilities, or any other game data.
Assign a TagColor and an optional Icon (emoji or short text) to give this tag a distinct visual appearance in the Unity Inspector. Optionally enable UseGradient to fill the pill with a two-color gradient.
[CreateAssetMenu(fileName = "New Game Tag", menuName = "Astra RPG Framework/Game Tag")]
public class GameTagSO : ScriptableObject
- Inheritance
-
objectGameTagSO
Properties
GradientDirection
Direction of the gradient sweep (used only when UseGradient is true).
public GradientDirection GradientDirection { get; }
Property Value
GradientEndColor
The end color of the gradient (used only when UseGradient is true).
public Color GradientEndColor { get; }
Property Value
Icon
Optional emoji or short text displayed alongside the tag name (e.g. "🔥", "⚔️").
public string Icon { get; }
Property Value
- string
TagColor
The primary (start) color used when rendering this tag as a pill in the Inspector.
public Color TagColor { get; }
Property Value
UseGradient
When true the pill is filled with a two-color gradient instead of a flat color.
public bool UseGradient { get; }
Property Value
- bool