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

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

3421. 3D模型无法用Tween类吗 [ 51%]

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

3422. 关于使用CryptoJS加解密的问题。 [ 51%]

...发生作用域改变的问题,建议使用__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

3423. 3D的一些问题 [ 51%]

...测试发现,原来必须使用.lm的文件才能解决第一个问题 var obj3D:Laya.MeshSprite3D = new Laya.MeshSprite3D(Laya.Mesh.load("Assets/FBX/scene_1-default001.lm")); 这样写就可以获得材质,而lh文件则不行,然而这样写的话,又出现了Laya.Event.HIERARCHY_L...

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

3424. ios load后 声音播放问题 [ 51%]

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

3425. 图片放在assets根目录下无法被引用成功,必须放到一个文件夹中 [ 51%]

...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

3426. 在Test中有个按钮点击,那么我如何发信号,使得这个点击能给控制Sample中的对象,如何调用函数 [ 51%]

...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

3427. 这样写的代码,Tween动画里面只有alpha有效果,scalex和scaley没有变化,怎么回事啊? [ 51%]

...面只有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

3428. Spine骨骼动画点击区域偏移 获取不到width height [ 51%]

...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

3429. 发现一个问题Laya.Animation()创建后移除,再创建,位置会变 [ 51%]

... 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

3430. webaudio 在iframe中使用, android chrome中没声音 [ 51%]

...   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