大约有 154 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0067 秒)
...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; //预加载资源 Laya.loader.load([buttonSkin, clipSkin, bgSkin], laya.utils.Handler.create(this, onSkinLoaded)); })(); function onSkinLoaded() { showBg(); createTimerAnimation(); showTotalSeconds(); createController(); } functio...
来源: Laya2.0_文档 发布时间: 20210715
...,请问有知道是什么原因的吗?~~~~~~~~~~~~~ IDE1.7.8 json图集加载问题 关于适配采用showAll后留白部分的颜色问题 关于apk打包动画卡的问题 写了个边缘光的自定义shader,有很多问题,帮忙看一下 event自定义事件的问题 Panel中的东西...
来源: Laya_社区 发布时间: 20180531
js环境下使用Loader加载图片在Sprite对象的.on函数无效 js环境下使用Loader加载图片在Sprite对象的.on函数无效 var tempnote = new Laya.Sprite(); 使用 tempnote.texture=Loader.getRes(tempjson.pic)后 tempnote.on函数不触发 使用tempnote.loadImage(tempjson.pic); 触...
来源: Laya_社区 发布时间: 20171024
...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; //预加载资源 Laya.loader.load([this.buttonSkin, this.clipSkin, this.bgSkin], Laya.Handler.create(this, this.onSkinLoaded)); } private onSkinLoaded(): void { this.showBg(); this.createTimerAnimation(); this.showTotalSeconds();...
来源: Laya2.0_文档 发布时间: 20210714
... 有了新资源 我们第一步要干嘛啊? 对 先把这些资源预加载~~~ 我们打开LayaSample.js 把新的资源放到预加载列表中 ======================== 能量条 ======================== 先讲能量条 我们游戏中有两种能量条 1、玩家悬空能量 2、玩家加...
来源: Laya_社区 发布时间: 20160803
[0]laya-zip游戏加载提速库(Laya3.0版本适配更新) 前言 laya-zip是一个用于laya引擎加载zip资源的扩展包,提供了友好和简单的API接口。与LayaTree一样,都使用Big AOP大切面理论进行设计,能够让游戏的加载速度提升约300%。效果 资源包...
来源: Laya_社区 发布时间: 20230316
...另一个问题来了 当第二次重启小游戏的时候,需要重新加载缓存,也就是需要重新 readFile 就会重新触发 copyFile 函数,相当于复制自身 而微信的 copyFile 复制自身的话真机环境下好像会清空自身文件内容(我真机实测是这样,...
来源: Laya_社区 发布时间: 20200529
...例对象 animation 。 animation.loadAtlas("resource/ani/fighter.json");//加载图集并播放 animation.x = 200;//设置 animation 对象的属性 x 的值,用于控制 animation 对象的显示位置。 animation.y = 200;//设置 animation 对象的属性 x 的值,用于控制 animation 对...
来源: Laya3.0_api 发布时间: 20231115
...割组合为一个切片动画。 Image和Clip组件是唯一支持异步加载的两个组件,比如clip.skin = "abc/xxx.png",其他UI组件均不支持异步加载。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : Number透明...
来源: laya_api 发布时间: 20170929
...割组合为一个切片动画。 Image和Clip组件是唯一支持异步加载的两个组件,比如clip.skin = "abc/xxx.png",其他UI组件均不支持异步加载。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获...
来源: Laya2.0_api 发布时间: 20190513