百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
U

unity-scene-web-exporter

> 编程语言
开源

将 Unity 场景导出为 Three.js 或 A-Frame。

197 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

将 Unity 场景导出为 Three.js 或 A-Frame。

UnitySceneWebExporter

Export Three.js or A-Frame From Unity Scene

Screenshot

Unity3D scene

Three.js

A-Frame

Feature

  • Export Scene to Three.js scene format (THREE.ObjectLoader can load exported data)
  • Export Scene to A-Frame document
  • Export C# Script variable
  • Support lightmapping

  1. Edit->Kanau->"Export AFrame" or "Export Three.js"
  2. Export

How to use

Install

Open your Unity3D project. Copy `/UnityProject/Assets/Kanau" directory into your project's assets directory.

Lightmapping (Optional)

If you don't want to export lightmapping, skip it. /UnityProject/Assets/Scenes/DemoLightmap is Lightmap Sample Scene.

Set Light as Baked.

Set GameObject as Static.

Disable Automatic lightmap build to make exr files. Then, build lightmap.

  • Does /Lightmap-_comp_dir.exr exist?
  • Does /Lightmap-_comp_light.exr exist?
  • If automatic lightmap enabled, exr files doesn't exist.

Export

Edit -> Kanau -> Export Aframe or Export Three.js. Click Export and select target filepath.

  • Note : Unselect objects from Hierarchy view. If some objects are selected, only those are exported. (unselect means export all objects)

View (A-Frame)

Open exported html in browser.

View (Three.js)

  1. Export scene as scene.json. (hardcoded in viewer html)
  2. Copy exported file into /MiniThreejsViewer. (json file, images directory, models directory)
  3. Open /MiniThreejsViewer/index.html.

Note

  • Tested on Unity3D 5.4.2p3.
  • Export configurations are used in A-Frame exporting. Three.js doesn't use it.
  • A-Frame is unstable library. (current A-Frame version is 0.3.2) In future, A-Frame exporter wiil be broken.

Similar Projects / Libraries

  • J3D - unity3d-to-threejs exporter
  • UnityAFrameExporter - Export A-Frame From Unity Scene
  • Three.js JSON Exporter - via Unity Asset Store
  • unity-webvr - Export Unity scene to WebGL

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言