大约有 1,311 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0051 秒)
Laya_社区(1039) Laya2.0_文档(79) Laya3.0_文档(55) Laya_示例(51) Laya3.0_api(44) Laya2.0_示例(39) laya_api(2) Laya2.0_api(2)
...{ url: Laya.ResourceVersion.manifest["res/atlas/loading.json"], type: Laya.Loader.ATLAS }, { url: Laya.ResourceVersion.manifest[utils.resourcesCenter.ResourcesPathStr.PROTO_FILE_PATH], type: Laya.Loader.TEXT }, ]; 手动修改了JS代码!! 可以成功...
来源: Laya_社区 发布时间: 20180421
...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load([buttonSkin, clipSkin, bgSkin], Handler.create(this, this.onSkinLoaded)); } onSkinLoaded() { this.showBg(); this.createTimerAnimation(); this.showTotalSeconds(); this.createController(); } showBg() { const Image =...
来源: Laya2.0_示例 发布时间: 20251209
....load("res/room.lh");//方法二:预加载,创建为Sprite3D类型Laya.loader.create("res/room.lh",Laya.Handler.create(this,this.onCreateComplete));//预加载完成后回调private onCreateComplete():void{//实例化加载并创建好的3D对象var sprite3D:Laya.Sprite3D = Laya.loader.getRes("r...
来源: Laya_社区 发布时间: 20180817
...的加载看一下 rgxianzhan • 2017-12-06 10:19 使用的加载方式是loader.load Monica • 2017-12-06 19:34 @rgxianzhan:你看下是否跨域了吧 rgxianzhan • 2017-12-07 18:57 @Monica:并不会报跨域,反而会报404。但是网页中确实可以打开
来源: Laya_社区 发布时间: 20171205
...f3af-4426-bc07-848524d9beb6/timg.jpg') // console.log(123120, ape) // Laya.loader.load('res/mao.jpg', Laya.Handler.create(this, function (){ // var t = Laya.loader.getRes('res/mao.jpg') // console.log(t) // var a = new Laya.Sprite() // a.graphics.drawTexture(t, 0,0) // a.scaleX = 0.3 // a.scaleY = 0...
来源: Laya_社区 发布时间: 20180104
...tance = this; } onTxtLoad(aText){ console.info("dfasd"); } initTxt(){ Laya.loader.load("res/localtxt.txt",Laya.Handler.create(this, onTxtLoad),null,Loader.TEXT); } } 2019-01-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1...
来源: Laya_社区 发布时间: 20190130
...源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(this.monkey2,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var img = new Laya.Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(this.monkey2),100,50); /...
来源: Laya_社区 发布时间: 20170825
... import Label = laya.ui.Label; import Handler = laya.utils.Handler; import Loader = laya.net.Loader; class TestUI extends ui.test.TestPageUI { constructor() { super(); var btn1=new ui.test.view_btnUI(); var btn1_btn:laya.ui.Button=btn1.getChildByName("btn") as laya.ui.Button; //问题一: 这里...
来源: Laya_社区 发布时间: 20170725
...自: LayaAir 3.3.0-beta.4 可以传递参数 代码如下 Laya.loader.load(config.url, Laya.Loader.HIERARCHY).then((res: any) => { let view: Laya.Scene = res.create(); view.open(false, ...param); })这边能正常输出...
来源: Laya_社区 发布时间: 20250609
...as/ui.atlas"}, {res:"res/ui/back.png",type:Loader.IMAGE} ]; Laya.loader.load(resArr,Handler.create(this,this.onLoaded)); } private function onLoaded():void{ //显...
来源: Laya_社区 发布时间: 20180106