Skip to main content

Dynamic Variables

What Are Dynamic Variables?

Dynamic Variables are runtime-modifiable values of GraphInstance identified by a string UID.

They allow:

  • Runtime parameter tuning
  • Skill scaling
  • Shared values across nodes
  • Code-driven customization

Defining Variables

Variables are defined inside the graph with:

  • UID (string)
  • Default value

Setting Values via Code

graphInstance.SetDynamicValue("dmgMulti", 1.5f);

If a value is not set at runtime, the default value is used.


Use Cases

  • Combo damage scaling
  • Difficulty adjustment
  • Temporary buffs/debuffs
  • Skill-specific tuning

Best Practices

  • Use consistent naming conventions
  • Document variable purpose in Sticky Notes