Skip to content

请问下切换场景有相关的示例吗? #32

Answered by gz65555
super-band asked this question in Engine
Discussion options

You must be logged in to vote

scene 如何保存成 scene url

这个是编辑器部分的代码,编辑器暂时还没开源,场景协议也暂时没有开放。目前阶段建议使用 glTF 文件作为场景文件。

切换场景有相关的示例或者能给个思路吗

一般是调用一个转场动画,然后调用 engine.sceneManager.activeScene = newScene 即可。

Replies: 0 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by gz65555
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Engine
Labels
None yet
2 participants