State Tracker

Options
erre
erre
Hi,

How does StateTracker work in 1.0.6? I read that TrueSyncBehaviour are tracked automatically.

But how this thing works if I have a class hierarchy? I mean, If I have:
public class A : TrueSyncBehaviour
{
[AddTracking]
private FP m_Timer = 0;
}

public class B : A
{
.
.
}
If i have an instance of B created after call

StateTracker.Init()
is m_Timer tracked also if it's private? Or must it be at least protected? Or should I force a StateTracker.Add(this) ?

Comments

  • JeffersonHenrique
    Options
    Hello @erre,

    It should work fine even if it is private. As you noticed the TSBehaviours are tracked automatically now, but if you have a class from a different hierarchy you can call StateTracker.Add(this).