Handling rollback for non-component children classes

A number of our components have sub classes which contain the mutable data for a class.

BuffComponent has
List < Buff >
and each buff has

If we [AddTracking] to the List of Buff - the BuffVars inside will change while the value of the reference to the Buff object will not.

What is the expected way to manage a self-contained child object which needs to be rolled back?


  • Humm, interesting @Xelnath, next versions we should expose the StateTracker, currently we don't support more complex types as you have, we copy basic types and fixed sized arrays, we don't deep save all children objects. If Buff is a struct you may try an array approach to hold buffs.