You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class Base<T> : NetworkBehaviour
{
[SyncVar] public bool syncvar;
public Base() { syncvar = true; }
}
results in the following error:
Modifying a [SyncVar] from another assembly is not supported. -- both assemblies printed in the error are the same assembly
despite the error, derived classes do seem to be working for my use case, the syncvar is set once in Start() on the host and connecting clients somehow see it, I guess because the value is still being serialized even though the setter isn't working
The text was updated successfully, but these errors were encountered:
results in the following error:
Modifying a [SyncVar] from another assembly is not supported.
-- both assemblies printed in the error are the same assemblydespite the error, derived classes do seem to be working for my use case, the syncvar is set once in Start() on the host and connecting clients somehow see it, I guess because the value is still being serialized even though the setter isn't working
The text was updated successfully, but these errors were encountered: