- Home /
Question by
darthbator · Apr 04, 2017 at 09:45 AM ·
networkingcrashnetworkserver
Editor crash when checking isServer in property
I appears to get a 100% crash when attempting the access the getter of the following property.
private int localPoints;
[SyncVar(hook="CallbackSyncPoints")] private int serverPoints;
public int Points {
get { return (isServer) ? serverPoints : localPoints; }
set {
if (isServer) {
serverPoints = value;
if (serverPoints > maxPoints)
serverPoints = maxPoints;
} else {
localPoints = value;
if (localPoints > maxPoints)
localPoints = maxPoints;
}
}
}
Is this something that is known or should I be submitting a bug report?
Comment
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
Creating a multiplayer game. 1 Answer
Unity 3d Network dies on Android 0 Answers
Connect to remote private IP 1 Answer
Network client : cannot fire 0 Answers