大约有 3,990 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0066 秒)
Laya_社区(2836) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(55)
3D模型无法用Tween类吗 //载入并显示模型 var layaMonkey: Laya.Sprite3D =Laya.Sprite3D.load("LayaMonkey/LayaMonkey.lh") as Laya.Sprite3D; scene.addChild(layaMonkey); layaMonkey.transform.localScale = new Laya.Vector3(0.001,0.001,0.001); layaMonkey.transform.localPosition = new Laya.Vecto...
来源: Laya_社区 发布时间: 20180112
...发生作用域改变的问题,建议使用__JS__辅助,如下 __JS__('var md5 = CryptoJS.MD5("Message").toString(CryptoJS.enc.Hex)'); __JS__('console.log("md5 = %s", md5)'); 2017-01-16 0 0 分享 微博 QZONE 微信 youhong168 赞同来自: 我是TS的项目。这是工程包。还是不行,...
来源: Laya_社区 发布时间: 20170116
...测试发现,原来必须使用.lm的文件才能解决第一个问题 var obj3D:Laya.MeshSprite3D = new Laya.MeshSprite3D(Laya.Mesh.load("Assets/FBX/scene_1-default001.lm")); 这样写就可以获得材质,而lh文件则不行,然而这样写的话,又出现了Laya.Event.HIERARCHY_L...
来源: Laya_社区 发布时间: 20170422
ios load后 声音播放问题 var resurls = []; resurls.push({url:"http://192.168.6.132:8900/bin/comp/tap.mp3",type:Laya.Loader.SOUND});Laya.loader.load(resurls, Handler.create(this, onLoaded), Handler.create(this, onLoading, null, false)); function onLoaded(){ console.log(Laya.loader.getRes(src))...
来源: Laya_社区 发布时间: 20170811
...hzheng • 2017-03-20 10:51 恩恩 肯定对这个图集做了预加载了 var resArray = [ {url:"res/atlas/comp.json", type: Laya.Loader.ATLAS}, {url:"res/atlas/assets.json", type: Laya.Loader.ATLAS} ]; Laya.loader.load(resArray, Laya.Handler.create(null,LoadResComplete)); cuixu...
来源: Laya_社区 发布时间: 20170317
...xtends EventDispatcher { public function Mod() { super(); } private static var _instance:Mod; public static function get index():Mod { return _instance ||= new Mod(); } public function init():void { Mod.event("aaaa"); } } }监听:Mod.on("aaa",this,onFunciton) 2016-12-19 0 0 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20161218
...面只有alpha有效果,scalex和scaley没有变化,怎么回事啊? var sprite:Laya.Sprite = new Laya.Sprite(); sprite.graphics.drawCircle(0, 0, 250, null, "#ff0000", 4); sprite.graphics.drawCircle(0, 0, 350, null, "#ff0000", 4); sprite.pivotX = sprite.width * 0.5; sprite.pivotY = sprite.heig...
来源: Laya_社区 发布时间: 20180708
...s._factory.off(Laya.Event.COMPLETE, this, this.parseComplete); var sprite = this._factory.buildArmature(0); sprite.x = x; sprite.y = y; sprite.scale(0.5,0.5); sprite.autoSize = true; sprite.play("idle", true); Laya.s...
来源: Laya_社区 发布时间: 20161108
... 0 0 分享 微博 QZONE 微信 zjwytqm 赞同来自: 找到原因了, //var bounds = ani.getGraphicBounds(); //ani.pivot(bounds.width / 2, bounds.height / 2); 加了这个,第次创建会you有问题 2018-04-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...
来源: Laya_社区 发布时间: 20180411
... if (WebAudioSound.ctx==null){ return; }; var source=WebAudioSound.ctx.createBufferSource(); source.buffer=WebAudioSound._miniBuffer; source.connect(WebAudioSound.ctx.destination); source.start(0,0,0); //Hello Chrome 55! if (source.c...
来源: Laya_社区 发布时间: 20171114