Example #1
0
        public void FlatJsonSceneWrite()
        {
            var registry = new UTinyRegistry();

            var entityGroup = registry.CreateEntityGroup(
                UTinyId.New(),
                "TestEntityGroup");

            var entity = registry.CreateEntity(
                UTinyId.New(),
                "TestEntity");

            entityGroup.AddEntityReference((UTinyEntity.Reference)entity);

            var json = Serialization.FlatJson.BackEnd.Persist(entityGroup, entity);

            Debug.Log(json);
        }