Hey, I'm wondering if it's possible to use the tno.Send command to send custom types.
I currently have this:
using UnityEngine;
// Data buffer struct for client and server.
public class State : System.Object
{
public float timestamp {get; set;}
public Vector3 pos {get; set;}
public Vector3 rot {get; set;}
public Vector3 velocity {get; set;}
public Vector3 angularVelocity {get; set;}
}
Now, initially I got an error in the TNUnityTools.cs, and it was here that I found the list of types. I added my case in the ReadObject function and WriteObject function.
This seemed to resolve all issues there, but now I'm getting this exception from TNObject.cs:
Exception has been thrown by the target of an invocation.
RigidbodyHandler.HandleSync (State)
UnityEngine.Debug:LogError(Object)