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

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

631. 设置滤镜(ActionScript-LayaAir基础篇(AS3)-位图) [ 61%]

...import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class Main { private const ApePath:String = "res/img/monkey1.png"; private var apeTexture:Texture; public function Main() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser....

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

632. ViewStack属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 61%]

...,执行onLoaded回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab选择按钮的处理 this.comp.tab.selec...

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

633. 资源路径问题 [ 61%]

...图片时加载不了。 Laya.loader.load(["res/atlas/img/hall.json"],Laya.Handler.create(this, onLoaded),null,Laya.Loader.ATLAS);无法加载。。。怎么回事 2017-04-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...

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

634. 打APK后加载unity导出资源出错 [ 61%]

...: "+path+"地图");         }         Sprite3D.load(path,Handler.create(null,function(sp){             if(_$this.PRINT_LOG){                 console.log("加载单张地图完成"+curIndex);             }             sp.active=false...

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

635. timeline播放完成Bug [ 61%]

...ttps://layaair2.ldc2.layabox. ... 3B%3B Laya.loader.load(monkey1Path, Laya.Handler.create(this, function() { let monkey = Laya.loader.getRes(monkey1Path); let ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.graphics.drawTexture(monkey, 0, 0); var tl = new Laya.TimeLine(); tl.once('complete', ...

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

636. img点击事件。点击图片外,也触发了事件。请问怎么解决 [ 61%]

...e.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.loader.load("res/img/m1.jpg",Laya.Handler.create(this,load)); function load(){ let ctn2=new Laya.Sprite(); Laya.stage.addChild(ctn2); var gq=new Laya.Sprite(); gq.loadImage("res/img/m1.jpg",100,100,100,100);   ctn2.addChild(gq); gq.on(Laya.Event.CLICK,this,I...

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

637. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 61%]

...l; //加载3D资源 Laya.loader.create(["res/LayaScene_girl/girl.lh"],Laya.Handler.create(this,this.on3DComplete)); } /*加载3D资源完成回调*/ private on3DComplete():void{ //创建3D角色 //实例化角色 this.role = Laya.loader.getRes("res/LayaScene_girl/girl.lh"); this.scene.addChild(this....

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

638. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 61%]

...rls.push(`${this.ANIMATION_PATH}move${i}.mc`); Laya.loader.load(urls, Laya.Handler.create(this, () => { for (let i = 1; i <= 8; i++) { const clipPath = `${this.ANIMATION_PATH}move${i}.mc`; // 检查资源是否存在 if (Laya.loader.getRes(clipPath)) { this.loadedClips.push(clipPath); } } cons...

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

639. layabox加载fairygui发布的二进制文件报错 [ 61%]

...{ url:"res/Bag.json", type:Laya.Loader.BUFFER}              ], Laya.Handler.create(this, this.onLoaded));   Laya.core.js   调试log __proto._endLoad=function(resInfo,content){ var url=resInfo.url; //输出//////////////////////////////// console.log("url:"+url); content==null?console.log(...

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

640. 同时加载多个.js文件 [ 61%]

同时加载多个.js文件 Laya.loader.load("js/daTing.js", Handler.create(this, onAssetLoadedDT), null, Loader.TEXT); 同时加载多个么? 2017-10-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - ...

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