private void TestRoomObject() { var TestObj = new RoomObjectObj { disposable = true, id = 27, isHidden = false, lookDirection = Vector3.forward, owner = "test", position = Vector3.one, prefab = "a test thing" }; var fbb = new FlatBufferBuilder(1024); var offset = TestObj.ToBuffer(fbb); fbb.Finish(offset.Value); var bArray = fbb.SizedByteArray(); var bb = new ByteBuffer(bArray); var desObj = RoomObject.GetRootAsRoomObject(bb); print("Room Object Test : " + (CompareRoomObjects(TestObj, desObj) ? "Passed" : "Failed")); }