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

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

711. 版本管理什么用 [ 63%]

...{ 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

712. UI-Clip [ 63%]

...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

713. 加载unity导出的.lh文件报错! [ 63%]

....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

714. cdn资源加载 [ 63%]

...的加载看一下 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

715. 微信小游戏wxmin图片加载有点问题 [ 63%]

...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

716. JS里面定义一个函数,无法使用Laya.Handler.creat回调 [ 63%]

...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

717. 求教 JS项目的Promise如何使用 [ 63%]

...源加载成功后,通过回调方法绘制图片并添加到舞台 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

718. VBOX动态增加的元素没有自动布局 [ 63%]

... 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

719. [LayaAir3]页面之间,通过open,onOpend 方法传参数,接收不到 [ 63%]

...自: 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

720. 按照打地鼠教程来无法正常加载资源 [ 63%]

...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