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

大约有 2,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0054 秒)

1461. 加载 unity3D导入的旧版蒙皮动画时出现错误 [ 64%]

...ions;             skinAni.templet = Laya.AnimationTemplet.load(this.skinAniUrl[0]);             skinAni.player.play();         }         for (var i: number = 0, n: number = spirit3D._childs.length; i < n; i++)             this.addSkinComponent(s...

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

1462. APP打包后运行效果与调试效果不一致(sprite,child) [ 64%]

...运行效果与调试效果不一致(sprite,child) Laya.timer.frameLoop(1,this,this.run()); public run():void{    var childs:Array<Laya.Sprite> = this._childs;    childs.sort(this.sortHandler); } public sortHandler(left:Laya.Sprite,right:Laya.Sprite):number{    return left.y-right.y; } ...

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

1463. 3d粒子只要勾了looping,每次播放完开始下一次循环的时候都会闪烁一下 [ 64%]

...res/LayaScene_gamescene/Conventional/chest01.lh", Laya.Handler.create(this, function(sp:Laya.Sprite3D):void { console.log("111111111111111111111") var target: Laya.Sprite3D = scene3d.addChild(sp) as Laya.Sprite3D; camera.convertScreenCoordToOrthographicCoord(pos, translate); target.tr...

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

1464. 如何用代码控制panel的vscroll滚动幅度 [ 64%]

...e.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { //panel 切记设置宽高,否则panel不显示 var panel:Panel=new Panel(); panel.size(300,300); panel.pos(100,100); panel.vScrollBarSkin='comp/vscrol...

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

1465. 加载的nativeimage处理 [ 64%]

...cuixueying 赞同来自: { Laya.loader.load("ui/image.png", Handler.create(this, onSkinLoadComplete)); } private function onSkinLoadComplete(e:*=null):void { var texture:Texture=Loader.getRes("ui/image.png"); var sp:Sprite=new Sprite(); sp.graphics.drawTexture(texture); Laya.stage.addChild(sp); } 20...

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

1466. 3D模型无法用Tween类吗 [ 64%]

... x:1     ,y:2     ,update:new Laya.Handler(box,function(){         this.transform.position = this.potOld;     }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){     console.log("complete"); }),ConstValue.animationDelay);   无法直接设置原因...

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

1467. 关于socket处理消息的问题 [ 64%]

...2); byte.writeUint16(0); byte.writeUint16(msg.opcode()); msg.encode(byte); this._socket.send(byte.__getBuffer().slice(0, byte.length); //this._socket.send(byte.__getBuffer()); -->>这两处地方使用slice和不使用, 服务器收到的数据长度是不一样的,求解 2017-09-05 添加...

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

1468. layabox AS3调用JS的示例有吗?(谢谢)。如果没有麻烦指点一二。求助。 [ 64%]

...步进时长 var timeStep:Object = 1.0 / 60.0; Laya.timer.loop(1000 / 10, this, cannonUpdate); } 我是用Browser.window拿到对象后一律当成Object使用的,是不是会有什么问题呢? 2017-04-18 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请...

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

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

...votX = sprite.width * 0.5; sprite.pivotY = sprite.height * 0.5; sprite.x = this.width * 0.5; sprite.y = this.height * 0.5; this.addChild(sprite);  Laya.Tween.to(sprite, {scaleX:1.5, scaleY:1.5, alpha:0}, 5000); 2018-07-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

1470. 骨骼动画播放完了,回调隐藏,回调在哪里 [ 64%]

...ory.loadAni("NiuXingTianXia/spine/start2.sk"); mFactory.on(Event.COMPLETE, this, function () { mArmature = mFactory.buildArmature(); mArmature.pos(650, 330); mArmature.play(0, false); this.addChild(mArmature); }); 2017-11-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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