Unity A Frame Exporter

MIT
by umiyuki

Export A-Frame From Unity Scene.

( Crawled 6 hours ago )
+

UnityAFrameExporter

Export A-Frame From Unity Scene.

Use Sample

  1. Clone This Repository in your PC.

  2. Open this Repository as Project from Unity3D.

  3. Double click sample to open sample Scene.

    image1
  4. Click AFrameExporter prefab to show exporter inspector.

    image1
  5. Click Export button on inspector.
    Export Scene as A-Frame in created export folder.

  6. Click Run button to show created A-Frame on browser.

    image1

Import to your Unity3D Project.

  1. Clone This Repository in your PC.

  2. Copy "AFrameExporter" and "CombineMeshes" Folder to your project from repository

  3. Open your project from Unity3D.

  4. Open scene you want to export.

  5. Click AFrameExporter prefab to show exporter inspector.

  6. Click Export button on inspector.

  7. Click Run button to show created A-Frame on browser.

Export Option

image1
◆General

・Title
Title of A-Frame.

・Library Address
A-Frame library address you want to use.

・Enable_performance_statistics
Show Performance Statistics.

◆Sky

・Enable_Sky
Enable A-Frame Sky.

・Sky_color_from_Main Camera_Background
Use sky color from Main Camera Background.

・Sky_color
Sky color.

・Sky_texture Sky texture.

◆Camera

・Wasd_controls_enabled
Enable WASD control.

・Look_controls_enabled
Enable Look control.

・Enable_Sky
Enable A-Frame Sky.

・Cursor_visible
Change cursor visible.

・Cursor_opacity
Change cursor opacity.0 to 1.

・Cursor_scale
Change cursor scale.

・Cursor_color
Change cursor color.

・Cursor_offset
Change cursor offset.

・Cursor_maxdistance
Change cursor max distance.

◆Clear Exported Files

Clean exported files.
If you editted export folder. These file will be deleted.

Caution

・You can't use Asset from Unity Asset Store limited of EULA.
But, you can ask asset developer about it.

・If you editted index.html in export folder, and re-export , It will be deleted.
Before edit A-Frame, please copy export folder to another directory.

・Export only main texture from object.

Supported Shader Type

・Standard
・Unlit/Color
・Unlit/Texture
・Unlit/Texture Colored
・Legacy Shaders/Transparent/Diffuse

Supported Unity3D Objects

・Main Camera
Supported parameters are Position, Rotation, Fov, NearClip, FarClip.

・Light
Supported only directional light.
Supported parameters are Position, Rotaion, Intensity, Color.

・Single Sprite
Export as Image.

・Cube
Export as Box.
Supported parameters are Scale xyz.

・Sphere
Export as Sphere.
Scale parameters are exported average xyz. because A-Frame Sphere have parameter only radius.

・Cylinder
Export as cylinder.
Scale y export as height.
Scale xz are exported average for A-Frame cylinder radius.

・Plane
Export as plane.

・Other Meshes
Export as Obj.