Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

State Tracker

$
0
0
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) ?

Viewing all articles
Browse latest Browse all 15755

Latest Images

Trending Articles



Latest Images