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

大约有 388 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0044 秒)

131. 列表里的元素可以播放动画吗 [ 79%]

...行默认加载赋值             this.storelist.renderHandler=new Handler(this,onRender);//当list刷新时触发 并发送Box,index             this.storelist.mouseHandler = new Handler(this,onMouse);//当list被点击时触发 并发送event,index         }...

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

132. 设置后box2d 的 worldRoot 后平移场景 物理世界原地不动 [ 79%]

...as Laya.Sprite; Laya.Physics.I.worldRoot = self.gameObj; this.cameraRect = new Laya.Rectangle(0, 0, 2000, 1000); this.gameObj.scrollRect = this.cameraRect; } onUpdate() { this.cameraRect.x = this.target.x - 400; this.cameraRect.y = this.target.y - 400; } 2020-08-13 0 0 分享 微博 QZONE 微信 为...

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

133. 2d物理引擎中,onTriggerEnter函数中的contact参数的getHitInfo函数无效 [ 78%]

...面 写 let that = this; 把this保存下来, 然后把 var mainfold = new Physics.I.box2d.b2WorldMainfol(); 改为 var mainfold = new that.box2d.b2WorldMainfol(); 2020-07-10 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 186*****645 ...

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

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

...izex > this.osizex && this.tsizez > this.osizez) { var eat = new Laya.Vector3(0, 0.5, 0);//龙卷风方法直接上升 other.owner.transform.translate(eat,true,false); //0.1秒后删除 Laya.timer.once(100, null, Wipe); function Wipe() { console.log(other._owner); //移除自己 other....

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

135. 2.13版本 2D物理碰撞OnTriggerEnter 第三个参数 contact.getHitInfo() 报错 [ 78%]

...理碰撞 OnTriggerEnter 第三个参数 contact.getHitInfo() 报错   new this.box2d   box2d 是undefined 请问这里的 this 指向是 ??   contact.getHitInfo = function () {                 var manifold = new this.box2d.b2WorldManifold();                 this.GetWorldManifold...

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

136. add PhysicsCollider组件的时候之间运行报错【2.0beta5.1] [ 78%]

...lider组件的时候之间运行报错【2.0beta5.1] var boxMesh:BoxMesh = new BoxMesh(2,2,2); //创建模型显示对象 var box3D:MeshSprite3D = new MeshSprite3D(boxMesh); box3D.addComponent(PhysicsCollider); scene.addChild(box3D); 附件 : --> 2019-01-04 添加评论 免费帖 --> 分享 微博 Q...

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

137. 怎么计算两个点之间的距离 [ 78%]

...eying 赞同来自: jinghuhuilai             var p1:Point = new Point(10,20);              var p2:Point = new Point(100,200);              var x:int = p1.x - p2.x;              var y:int = p1.y = p2.y;              var...

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

138. list item 添加事件后无法监听 [ 77%]

...istView(x, y, width, height, item_width, item_height) {     var list = new Laya.List();     list.itemRender = initItem(item_width, item_height);      list.repeatX = 1;     list.size(width, height);     list.x = x;     list.y = y;     list.vScrollBarSkin = "";      l...

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

139. 1.7.17beta,微信小游戏预览加载问题 [ 77%]

...h="http://192.168.8.104:8080/" var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(0.1, 0.1, 0.1))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material: Laya.StandardMaterial = new Laya.StandardMaterial(); material.diffuse...

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

140. 树状列表组件 · LayaAir3.0文档 · LAYABOX [ 77%]

...例如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Tree }) public tree: Laya.Tree; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //初始化树状...

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