Scene

作者: skoll | 来源:发表于2023-03-28 17:06 被阅读0次

场景的显示列表

1 .现在是直接搞一个数组,然后挂载到scene上面,操作的时候也是直接取这个数组里面去调用循环
2 .但是他好像有自己的显示列表

场景过渡

1 .

this.scene.transition({
  target:nextSceneName,
  moveBelow:false,
  //是否在下面移动
  duration:550,
  data,
  //传递给下一个场景的数据值
})

过渡事件

this.events.on('transitionstart',(fromScene,duration)=>{

})
this.events.on('transntionout,(toScene,dutation)=>{

})

过渡动画的实现

1 .可以使用canera来实现

this.cameras.main.x = this.screenWidth * this.resolution
this.tweens.add({
    targets: this.cameras.main,
    x: 0,
    y: 0,
    duration: 500,
    onCompleteScope: this,
    onComplete: () => {
    }
})

2 .可以使用shader来实现
3 .可以使用shader来实现
4 .可以使用container来实现

相关文章

  • Laya3d API

    scene 创建场景var scene = Laya.stage.addChild(new Laya.Scene(...

  • scene

    大概类似于一个教资面试的考场,前面一个讲台,黑板上写了一道数学题,下面是一排排的桌子,人们陆陆续续的进去,坐下来,...

  • scene

    昨天中午一个穿服的人进来上班那,问我下载 国家反诈中心APP没有?我说下载了,(只是下载了,没注册没登录),我以为...

  • Seventh season last episode,Moni

    [Scene: Monica and Chandler's bathroom, the scene is cont...

  • Unity Scene 加载场景

    首先创建保存两个Scene,分别是Scene001、Scene002: Scene001,放一个脚本,以及一个Cu...

  • Sixth season second episode,Ross

    [Scene: Central Perk, it's the same scene from the end of...

  • 【Unity】Unity快捷键大全

    File 文件 Ctrl + NNew Scene 新建场景 Ctrl + OOpen Scene 打...

  • SceneKit

    前言 SCNView是一个集成自UIView的视图,有个成员变量是scene,scene相当于VC,scene.r...

  • 《复联4》100个彩蛋?!彩蛋用英文怎么说

    彩蛋 credit cookie / bonus scene/ post-credits scene 如今,越来越...

  • swift删除SceneDelegate.swift文件报错

    问题描述: 删除文件后。报错:There is no scene delegate set. A scene de...

网友评论

      本文标题:Scene

      本文链接:https://www.haomeiwen.com/subject/ogdxldtx.html