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

大约有 261 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0041 秒)

171. AS代码如何new一个js库中的类并且使用这个类 [ 59%]

...c.js 步骤1)加载JS 2)加载完回调 3)new需要的类   //加载 Laya.loader.load(getModuleJSPath("abc.js"), Handler.create(this,loadedHandler)); function loadedHandler(data:*):void{       //加载完回调       __JS__('window.eval(data + "//# sourceURL=" + "abc.js")');     //new需要...

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

172. 经常执行WebGLImage的recreateResource,且容易掉帧 [ 59%]

...bxtool 工具文件你们有吗? 我不要插件,要可执行的exe Laya.loader.create 进度回调函数执行两次 laya2.0如何用命令行执行清理并导出功能 问题状态 最新活动: 2018-10-10 20:11 浏览: 551 关注: 2 人

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

173. 进度条样式在减少过程中会慢慢突出容器 [ 59%]

...种进度条怎么实现? 希望能介绍下编译as的大致过程 Laya.loader.create 进度回调函数执行两次 问题状态 最新活动: 2017-10-12 19:34 浏览: 845 关注: 2 人 apeCom • 2017-10-12 19:39 谢谢

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

174. 关于创建Sprite获取大小 [ 59%]

...调。这个是异步获取,如果你要单个获取的话 window.Laya.loader.load(value.url, ls.Handler.create(this, function () { _this.graphics.clear() var texture = window.Laya.loader.getRes(value.url) _this.graphics.drawTexture(texture) _this.scaleX = _this.set_width / texture.sourceWidth _th...

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

175. layaAir TS项目如何引用protoBuf库? [ 59%]

...: // 程序入口 class GameMain{     constructor(){         var Loader = Laya.Loader;         var Browser = Laya.Browser;         var Handler = Laya.Handler;         var ProtoBuf = Browser.window.protobuf;         Laya.init(550, 400);         //加载协议...

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

176. 添加组件PhysicsCollider 时报 Cannot read property 'btCollisionObject' of undefined [ 59%]

...资源加载完运行过回调函数以后再进行。如下句 : Laya.loader.create( MyResouces.arrResources, Handler.create(this,onLoadComplete) ); 意为加载完MyResouces.arrResources这些资源后调用方法onLoadComplete,添加碰撞盒子需要在onLoadComplete里或者onLoadComplete...

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

177. 使用多个时间轴动画 demo.ani(0,true,'name')失效 [ 58%]

...lor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui/boos.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { // //创建一个Animation实例 // var tl = new Laya.Animation(); // //加载动画文件 // tl.loadAnimation("test.ani"); //...

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

178. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 58%]

...法,AS/TS思路一样,请根据自己的需求进行修改即可!var Loader = laya.net.Loader; var Handler = laya.utils.Handler; var Event = laya.events.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //list赋值,先获得一个数据源数组 var arr = ; for (va...

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

179. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 58%]

....js 在之前的基础上增加加载图片的代码://加载图片 Laya.loader.load(["res/background.png", "res/m_background.png"], laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoad...

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

180. 先前提交的几个问题想咨询下处理进度的 [ 58%]

...麻烦帮看一下这种遮罩bar的进度条设了遮罩不起作用 Laya.loader.create 进度回调函数执行两次 最新版LayaAir IDE 2.2.0beta4的几个问题 问题状态 最新活动: 2017-05-31 11:24 浏览: 1061 关注: 2 人

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