internal void GltfSerialize(JsonWriter writer) { writer.AddObject(); GltfSerializeRoot(writer); if (children != null) { writer.AddArrayProperty("children", children); } if (mesh >= 0) { writer.AddProperty("mesh", mesh); } if (translation != null) { writer.AddArrayProperty("translation", translation); } if (rotation != null) { writer.AddArrayProperty("rotation", rotation); } if (scale != null) { writer.AddArrayProperty("scale", scale); } if (matrix != null) { writer.AddArrayProperty("matrix", matrix); } if (skin >= 0) { writer.AddProperty("skin", skin); } if (camera >= 0) { writer.AddProperty("camera", skin); } if (extensions != null) { extensions.GltfSerialize(writer); } writer.Close(); }
internal void GltfSerialize(JsonWriter writer) { writer.AddObject(); GltfSerializeRoot(writer); writer.AddArrayProperty("nodes", nodes); writer.Close(); }
internal void GltfSerialize(JsonWriter writer) { writer.AddObject(); if (offset != null) { writer.AddArrayProperty("offset", offset); } if (scale != null) { writer.AddArrayProperty("scale", scale); } if (rotation != 0) { writer.AddProperty("rotation", rotation); } if (texCoord >= 0) { writer.AddProperty("texCoord", texCoord); } writer.Close(); }