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

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

1531. layaFlash 无法使用 Loader 加载外部SWF和图片 [ 46%]

...。 下面粘贴一个小示例(仅供参考)package { import flash.display.Loader; import flash.display.MovieClip; import flash.display.Sprite; import flash.events.Event; import flash.net.URLRequest; import flash.system.ApplicationDomain; import flash.system.LoaderContext; public class SwfBinar...

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

1532. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 46%]

...自: laya123 package huamao.layer.ui { import app.TheGame; import laya.display.Sprite; import laya.maths.Rectangle; public class CdSprite extends Sprite { public static const START:int = -90; public static const COLOR:String = "#000000"; private var r:Number = BarCell.WID / Math.SQRT2; private var r...

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

1533. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 46%]

...o.pos(200, 0); //切换动画皮肤 hero.showSkinByIndex(0); //播放 hero.play(0, true); this.img_sample.addChild(hero); this.sk_hero = hero; Laya.timer.once(200, this, () => { hero.on(Laya.Event.CLICK, this, this.onHeroClick); let bbox = hero.getSelfBounds(); hero.hitArea = bbox; }); } 附件 :...

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

1534. Animation 先clear当前的动画, 然后从浏览器缓存 加载下一个动画会闪一下,这个怎么解决? [ 46%]

....anim.pivotX = 0; this.anim.pivotY = 0; this.anim.interval = 30; this.anim.play(); 在加载这个动作以前我会先清理上一个动画的资源 this.anim.clear(); Laya.loader.clearTextureRes( url); 别抢小虎 • 2018-05-08 10:52 现在游戏逻辑有点多,只能这样描述一下流程 w...

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

1535. 按官网上的文档 使用LayaNative运行LayaAir项目https://ldc.layabox.com/doc/?nav=zh-as-7-0-1。出现了问题 [ 46%]

...题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException: play() 问题状态 最新活动: 2018-05-30 16:54 浏览: 1421 关注: 2 人 Mr.余 • 2018-05-31 18:01 用LayaAir3D转换工具,版本1.7.16beta。导出场景,使用LayaAirRun ,打开连接报错,连接不上是咋...

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

1536. 动画混合问题,Avatar动画混合报错. [ 46%]

...tionZ += norDir.z * 0.017 * this.nSpeed; //this._RoleSeeForward(dir); this.PlayAni(); } public PlayAni() { this.animator.play("walk",1); }   2019-10-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 189*****132 相关问题 Animator 如...

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

1537. 3D物体检测到碰撞后,被碰撞物被移除的时候过30秒再次出现?并添加到舞台 [ 46%]

...碰撞检测在运动的上面,检测到碰撞信息后删除对方。 PlayerMove.prototype.onTriggerStay = function (other) { this.tsizex = this.box._components[0]._transformOrientedBoundBox.extents.x; this.tsizez = this.box._components[0]._transformOrientedBoundBox.extents.z; this.osizex = other...

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

1538. 3D粒子特效初始化卡顿 [ 46%]

...ill = Laya.Sprite3D.instantiate(sprite); target.addChild(this.skill); this.Play();   这种卡顿在PC谷歌浏览器上不明显,但手机上就很明显了,另外在IDE的layaair调试器中也很明显。 附件 : --> 2018-04-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

1539. 2.2.0 bata3 开放域透传功能报错 [ 46%]

...题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException: play() 真机调试报错:LayaPlayer不支持的标签</SCRIPT> 问题状态 最新活动: 2019-08-19 10:50 浏览: 2406 关注: 3 人 StevenMiao • 2019-08-16 13:41 谢谢!替换之后可以了。 关于透传我...

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

1540. 为什么说没有​ playByFrame方法 [ 46%]

为什么说没有​ playByFrame方法 var anifish = fish.addComponent(Laya.SkinAnimations); anifish.templet = Laya.AnimationTemplet.load("fish/denglongyu/denglongyu.lsani"); anifish.player.playByFrame(0,1.0,2147483647,0,30,30);//游动 // anifish.player.playByFrame(0,1.0,2147483647,40,72,30);//...

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