Skip to main content

Involved Entity

What Are Involved Entity?

Involved Entity are runtime-modifiable Entity reference of each GraphInstance.

They allow:


Involved Entity Type

  • Dealer : Usually reference the attacker
  • Target : Usually reference the victim
  • Instance : Each GraphInstance can own a temporary Instance Entity.
    • This is useful for:
      • Projectiles
      • Traps
      • Missiles
      • Temporary buffs
      • Runtime attribute storage
    • The Instance Entity:
      • Exists only during the GraphInstance lifetime
      • Can hold attributes
      • Can be modified by graph logic
      • Is automatically cleaned up

Setting Involved Entity via Code

instance.SetDealerEntity(attackerEntity);
instance.SetTargetEntity(victimEntity);

The Instance Entity is auto set by GraphInstance.