Export an Unity scene into the JSON file format. Not all components are supported, this project focuses on 3D export for now.
- Copy scripts in your project
- Place the
SceneExport
script on a GameObject - Select a path, a filename
- Click Export
All children of the GameObject that contains this script will be serialized into JSON and saved. Now you can parse the JSON file with another game engine and reconstruct you scene.
All exported component have a field called Enabled.
Component | Fields |
---|---|
MeshRenderer | Mesh, Materials |
MeshFilter | Vertices, Indices, SubMeshes |
Material | MainTexture Name, Offset, Scale |
Collider | Min, Max, Radius |
Light | Radius, Intensity, Type, Angle, Color, Shadows |
Reflection Probe | Backed, Intensity, BoxSize, BoxMin, BoxMax, Resolution, Clip Planes |
Terrain | Heightmap, Weightmap, Layers, Size |
Textures can be exported too and doesn't requires that the Read/Write
flag is checked.
For now there is a MonoGame exporter that generates an MGCB content file that contains textures and map file.
A GameObject contains by default all components. You've to check if those components are valid or not.
- ID
- Name
- Parent
- IsStatic
- IsActive
- LocalPosition/Rotation/Scale
- Renderer / Collider / Light / ReflectionProbe / Terrain
This project is released under the MIT license.