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

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

31. Tween.to 执行失败 [ 60%]

...着走的函数 Tween.to(sprite,{x:Laya.stage.mouseX,y:sprite.y,update:new Handler(this,onWalk(hDir)),complete:Handler.create(this,function(){ Tween.to(sprite,{x:sprite.x,y:Laya.stage.mouseY,update:new Handler(this,onWalk(vDir))}) ; })}) ; console.log(sprite.x) ; console.log(sprite.y) ; console.log(...

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

32. Laya.Tween怎么运用到3D对象上? [ 60%]

...ion;Laya.Tween.to(box.potOld,{     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.animation...

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

33. 2D性能优化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 60%]

...var sp=new Laya.Sprite(); sp.loadImage("res/apes/monkey2.png",0,0,0,0,Laya.Handler.create(this,function() { console.log(sp.width,sp.height); })); Laya.stage.addChild(sp); loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 直接调用size设置: Laya.loader.load("res...

来源: Laya3.0_文档 发布时间: 20251010

34. 什么情况下Tween缓动会停止?除了暂停函数外 [ 56%]

...告 laya.utils.Tween.to(self.richText, { x: 0 }, 10000, null, laya.utils.Handler.create(self, self.onTween1));   然后执行游戏里面代码的时候有时候会卡住不动,没报错,非必现。 //播开始动画 var kaishi = new StartAnimView(); this.addChild(kaishi); kaishi.playAnim(); t...

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

35. Laya.Sprite3D.load机制bug [ 56%]

...是被销毁状态! 重现几率为必现 Laya.Sprite3D.load(name, Laya.Handler.create(this, (data:Laya.Sprite3D)=>{ if(data){ if(data.destroyed){ return; } } 2018-11-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...

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

36. 销毁资源并释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 55%]

...en/skinModel/LayaMonkey2/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { ........ //上面省略,我们再网格加载完成3秒后对该网格进行销毁 Laya.timer.once(3000,this,function() { //销毁了使用了该网格的精灵 layaMonkey.destroy(); //...

来源: Laya2.0_文档 发布时间: 20210715

37. 销毁资源并释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 55%]

...en/skinModel/LayaMonkey2/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh:Laya.Mesh):void { ........ //上面省略,我们再网格加载完成3秒后对该网格进行销毁 Laya.timer.once(3000,this,function ():void { //销毁了使用了该网格的精灵 lay...

来源: Laya2.0_文档 发布时间: 20210715

38. 销毁资源并释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 55%]

...eeDimen/skinModel/LayaMonkey2/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Handler.create(this, function(mesh:Mesh):void { ........ //上面省略,我们再网格加载完成3秒后对该网格进行销毁 Laya.timer.once(3000,this,function ():void { //销毁了使用了该网格的精灵 layaMonk...

来源: Laya2.0_文档 发布时间: 20210715

39. 使用Tween.to完成回调异常! [ 53%]

...o完成回调异常! Tween.to(this.floatTxt, {y:-30}, 600, Ease.expoOut, Handler.create(this,onFloatComplete)); protected function onFloatComplete(callBack:Function):void {  this.removeSelf(); } 我用这个缓动来做飘字效果,完成回调的时候,把飘字对象在场景上移除,结...

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

40. 用LayaAir引擎解析Tiled Map地图(ActionScript-2D进阶篇(AS3)-扩展模块) [ 52%]

... import laya.maths.Rectangle; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class TiledMapDemo { private var tMap:TiledMap; public function TiledMapDemo() { //初始化舞台 Laya.init(Browser.width, Browser.height, WebGL); //创建TiledMap实例 tMap = new Ti...

来源: Laya2.0_文档 发布时间: 20210714