At random the error
!CompareApproximately (det, 1.0F, .005f)
UnityEditor.SceneView:.ctor()
will pop into the console (not playing, no other code errors). Clearing the error and playing works fine until it pops up again.
A forum/answer search turned up some transform stuff but nothing for sceneview.
Any ideas? I am assuming ctor is short for constructor, which would indicate a class constructor, maybe? The only class I have added recently is:
class objectState {
var timeStamp: double; //EDIT: changed from float to double for T-shoot, same error
var savedPos: Vector3;
var savedRot: Quaternion;
}
function OnSerializeNetworkView ( infoStream: BitStream, infoSender: NetworkMessageInfo ) {
if ( infoStream.isWriting ) {
//input code is here, stripped for relevance
} else {
//other lerp code here, stripped for relevance
var currentState: objectState;
currentState.timeStamp = infoSender.timestamp; //nullref here
}
}
Which I am debugging in another thread, but I didn’t include a constructor function.
EDIT: Added a constructor function and fixed my own nullref from other thread. Not sure if this fixed the compareapproximately error, since it’s at random.