大约有 525 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0042 秒)
Laya_社区(430) Laya2.0_文档(51) Laya2.0_示例(16) Laya_示例(12) Laya3.0_文档(10) laya_api(2) Laya3.0_api(2) Laya2.0_api(2)
...ure2d destory"); } this.bitmap=null; } if (this.url && this===Laya.loader.getRes(this.url)) Laya.loader.clearRes(this.url); } }增加的代码是 if (this.bitmap.referenceCount===0){ this.bitmap.destroy(); // console.log("texture2d destory"); } 2019-06-13 0 0 分享 微博 QZONE 微信 打...
来源: Laya_社区 发布时间: 20190320
...0 0 分享 微博 QZONE 微信 liwenhua 赞同来自: this.linkJson = Laya.loader.getRes('res/json/linkUrl.json');这样读取出来不就是就对象了吗,怎么设置编码格式啊??不会啊!!!我都是这样引用,然后直接this.linkJson.XXX进行读取的,如果数值都都...
来源: Laya_社区 发布时间: 20180115
...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); function setup() { normalizeApe(); makeRedApe(); grayingApe(); } function normalizeApe() { var originalApe = createApe(); apeTexture = Laya.loader.getRes(ApePath); orig...
来源: Laya2.0_文档 发布时间: 20210714
...adImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("https://s2.d2scdn.com/2017/12/ ... ot%3B, Handler.create(this, function() { var t = Laya.loader.getRes("https://s2.d2scdn.com/2017/12/ ... 6quot;); var ape = new Sprite(); ape.scaleX = 0.5 ape.scaleY = 1 ape.grap...
来源: Laya_社区 发布时间: 20171220
...用代码调用按钮的点击事件(如as3的dispatchEvent)? Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? 问题状态 最新活动: 2017-08-08 23:11 浏览: 4395 关注: 3 人 cuixueying • 2017-04-26 20:01 flash builder是as3的调试环境,不是h5的,我们只...
来源: Laya_社区 发布时间: 20170426
...; this.scene.addChild(this.camera); Laya.loader.create("res/scene_Effect/Conventional/Effect_zhujue_attack.lh", Laya.Handler.create(this, () => { let item = Laya.loader.getRes("res/scene_Effect/Conventional/Effect_zhujue_attack.lh...
来源: Laya_社区 发布时间: 20191102
...loadEffectComplete():void{ var effect:Laya.Sprite3D = Laya.loader.getRes("res/effect/2/Conventional/bullet.lh"); this.compileShader(effect); //===========放心使用吧================= var myeffect:Laya.Sprite3D = effect.clone(); ...
来源: Laya_社区 发布时间: 20190404
...ir下如何获取图集下的小图资源? 模型资源释放问题 Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? 请问LayaNative2.0能否做到每个子游戏分别打包zip,在Native中解包并跳转? IDE中无法移动资源到另一个目录问题 IDE动画 添加...
来源: Laya_社区 发布时间: 20170215
...字段妖孽无效 直接上代码 var xml:XML = Laya.loader.getRes("res/config.xml"); xml = xml.firstChild; for (var node:XML = xml.firstChild; node != null; node = node.nextSibling) { ...
来源: Laya_社区 发布时间: 20170918
...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(this.ApePath, Handler.create(this, this.setup)); } private setup(): void { this.normalizeApe(); this.makeRedApe(); this.grayingApe(); } private normalizeApe(): void { var originalApe: Sprite = this.createApe(); th...
来源: Laya2.0_文档 发布时间: 20210715