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

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

1141. laya.utils.Tween [ 70%]

...属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。  duration:int — 花费的时间,单位毫秒。  ease:Function (default = null) — 缓动类型,默认为匀速运动。  complete:Handler (default = null) ...

来源: Laya2.0_api 发布时间: 20190513

1142. 陀螺仪接口无效呢?Gyroscope.instance.on(Event.CHANGE, this, onOrientationChange); 什么原因呢 [ 70%]

陀螺仪接口无效呢?Gyroscope.instance.on(Event.CHANGE, this, onOrientationChange); 什么原因呢 2017-10-15 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 game4d 赞同来自: var firstTime = true; laya....

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

1143. layaflash下构造函数需要注意哪些问题? [ 70%]

...B.as的代码:package { public class B extends A { public function B() { this.data = "layaFlash";//这里的修改无效 trace("data is " + this.data); super(); this.data = "layaFlash";//有效的修改属性代码 trace("data is " + this.data); } } } 2015-12-11 0 0 分享 微博 QZONE 微信 为...

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

1144. 物理刚体(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 70%]

...载模型 Laya.Sprite3D.load("Conventional/shoot.lh",Laya.Handler.create(this,function(sp){ //获取到Meshsprite3d var cube = scene.addChild(sp.getChildAt(0); //获取刚体 var cubeRigid = cube.getComponent(Laya.Rigidbody3D); })); ```

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

1145. 飞机大战实战(第四讲)中的机身居中问题 [ 70%]

...法理解,还不如设置轴心点容易理解. playAction(action): void { this.body.play(0, true, action); var bounds: Laya.Rectangle = this.body.getBounds(); //设置机身轴心从左上角到中心 this.body.pivot(bounds.width / 2, bounds.height / 2); //设置机身居中 //this.body.pos(-bounds...

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

1146. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 70%]

.../PangZi-Take 001.lani",]; Laya.loader.create(resource, Laya.Handler.create(this, this.onPreLoadFinish)); } onPreLoadFinish() { //初始化3D场景 _scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/TerrainScene/XunLongShi.ls")); //获取相机 var camera = _scene.getChildByName("M...

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

1147. TimeLine标签删除失败,动效还是在播放 [ 70%]

...然后重置 就ok了 小丶kiss • 2018-12-19 21:31 结束动画 1)隐藏this.target.visible = false; 2)重置this.timeLine.reset();

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

1148. 可能有个昵称叫做“syy”的一只掉进粪坑里的猪会在下面乱叫 [ 70%]

...pe.DestroyJoint=function(a){ box2d.ENABLE_ASSERTS&&box2d.b2Assert(!this.IsLocked()); if(!this.IsLocked()){ var b=a.m_collideConnected; a.m_prev&&(a.m_prev.m_next=a.m_next); a.m_next&&(a.m_next.m_prev=a.m_prev); a===this.m_jointList&&(this.m_jointList=a.m_next); var c=...

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

1149. 2.0 Beta3版本中,runtime脚本的的问题 [ 70%]

... 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: /*layaMaxUI.ts  *This class is automatically generated by LayaAirIDE, please do not make any modifications. */ import View=Laya.View; import Dialog=Laya.Dialog; import Scene=Laya.Scene; export module ui { export class BGPageUI extends View { ...

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

1150. HTMLIframeElement加载html网页的问题 [ 70%]

....load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }运行会报错:见图:   求解~!   附件 : --> TestHtml.zip 2017-10-11 添加评...

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