• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,301 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0290 秒)

1011. 场景管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 51%]

...open(url: string, closeOther: boolean = true, param: any = null, complete: Handler = null, progress: Handler = null): Promise<Scene> { Scene.showLoadingPage(); return Scene.load(url, Handler.create(null, this._onSceneLoaded, [closeOther, complete, param]), progress); } (图2-1) 例如创...

来源: Laya3.0_文档 发布时间: 20251010

1012. 这个方法使用的时候动画都不显示了 [ 51%]

...        */         public function loadAtlas(url:String, loaded:Handler = null, cacheName:String = ""):Animation { 2018-05-22 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Yangcy 相关问题 两个对象new了一个相同的...

来源: Laya_社区 发布时间: 20180522

1013. ReferenceError: Laya3D is not defined? [ 51%]

...EEN_NONE;   Laya.Scene3D.load("LayaScene_Main/Conventional/Main.ls", Laya.Handler.create(null, function(scene:Laya.Scene3D):void { Laya.stage.addChild(scene) as Laya.Scene3D; var camera:Laya.Camera = scene.getChildByName("Main Camera") as Laya.Camera; //camera.addComponent(CameraMoveScript); })); 2...

来源: Laya_社区 发布时间: 20190308

1014. Animation创建动画模板问题 [ 51%]

...ed (file:///E:/EarlyChildhood/EARLY_GAME_001/bin/js/map/Node.js:113:30) at Handler.__proto.run (file:///E:/EarlyChildhood/EARLY_GAME_001/bin/libs/laya.core.js:656:27) at TiledMap.__proto.initMap (file:///E:/EarlyChildhood/EARLY_GAME_001/bin/libs/laya.tiledmap.js:307:27) at TiledMap.__proto.onTexture...

来源: Laya_社区 发布时间: 20170206

1015. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 51%]

...d { //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLoad2():void { Laya.timer.once(2000, this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = new TestView(); //Laya.stage.addChild...

来源: Laya_社区 发布时间: 20180525

1016. 如何使用graphics绘画虚线 [ 51%]

...ar sp: Laya.Sprite = new Laya.Sprite(); sp.loadImage(data, 0, 0, 1280, 720,Handler.create(this,()=>{ sp.graphics.getBoundPoints().forEach(e=>{ console.log("_getBoundPointsM:",e); }); })); sp.x=0; sp.y=0; this._sptse=sp; Laya.stage.addChild(sp);

来源: Laya_社区 发布时间: 20170423

1017. 多线程worker(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 51%]

...//加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例UI界面 var testView:ui.test.TestPageUI = new ui.test.TestPageUI(); Laya.stage.addChild(testView); } } new LayaUISample; ``` `WorkerLoader.workerPath = ...

来源: Laya2.0_文档 发布时间: 20210715

1018. 请大家帮助优化一下这个抛物线的代码 [ 51%]

...a.init(1100, 619, Laya.WebGL); Laya.loader.load("res/atlas/war.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); } private onLoaded():void{ this.ball = new Ball(); Laya.stage.addChild(this.ball); this.ball.x = Laya.stage.width / 2; this.ball.y = Laya.stage.height / 2; Laya.stag...

来源: Laya_社区 发布时间: 20171108

1019. load方法加载cdn上面的图片资源的时候直接报了跨域不同源的问题,怎么破? [ 51%]

...e.log('Gzdaze='); console.log(Gzdaze); Laya.loader.load(Gzdaze.dialogList, Handler.create(this, this.startLoaded)); 代码是这样的 报错 Access to Image at 'http://caifu-1251177394.file.myqcloud.com/beta/book/bookLaya/img/progressBar$bar.png' from origin 'http://bookportal.com' has been blocked...

来源: Laya_社区 发布时间: 20180208

1020. IDE发布之后,在res下并没有任何资源,这是什么情况啊? [ 51%]

...。改成 Laya.loader.load("res/atlas/Resources.json",laya.utils.Handler.create(this,this.onReader),null,laya.net.Loader.ATLAS);就好了 Buzhihew • 2017-01-11 15:50 @Monica:.......我.....总之谢谢啊啊啊 Monica • 2017-01-11 15:51 @Buzhihew:不客气(*^__^*) ...... wuquanan • 2...

来源: Laya_社区 发布时间: 20170111