Load the Unity's exported scene is diffrent with preview

@MackeyK24
It works fine in tool’s preview , but i dont’t know what is the best way to use it in my project.
Thanks a lot…
In privew:
good
In my project:
bad

You need to have Babylon.manager.js in your other web project

Or disables all toolkit feature and metadata and just have a raw right handed primitive mesh gltf 2.0 file that can loaded with any gltf viewer. You obviously won’t have all the extra unity like feature that Babylon.manager.js provides

But i already include the babylon.manager.js in my html.

<script type="text/javascript" src="libs/babylon.manager.js"></script>
<script type="text/javascript" src="Unity/scenes/BBL_Export.js"></script>

@MackeyK24

I don’t know what is BBB_Export

Take a look at my engine.html to see all libs that I load

sorry , the BBL_Export is my unity project’s name ,but the BBL_Export.js is created by the tool and is load in the engine.html.
looks like my scripts is all in it.
@MackeyK24

Can you package up the project and send to me so I can take a look at it

https://rjc.oss-cn-chengdu.aliyuncs.com/tools/BBL_Export.zip

sorry for late

@MackeyK24

@MackeyK24 any progress ?

Sorry, i finally found if i load the loaders.js will cause this error.

 <script src="babylon/loaders/babylonjs.loaders.min.js"></script>

Just bumping here as a reminder to @MackeyK24 if possible

Hmmm… I loaded this BBB_Export… with Unity 2021.1.16f1

Working Fine :slight_smile:

Yo @Tidus

Oops… this was in my toolkit project with my engine.html

Are you saying you are getting these errors running in an external

project ???

If so… use the engine.hmtl i generate to show all the LIBS you should be loading on the page…

I dont use babylon.loaders… mine is called babylon.gltf.js (Which is really babylon.gltf2fileloader.js renamed)

BUt again… use engine.html as a guide for all the libs i am using :slight_smile: