大约有 392 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0041 秒)
Laya_社区(261) Laya2.0_文档(45) Laya3.0_api(21) Laya3.0_文档(20) laya_api(15) Laya2.0_api(13) Laya2.0_示例(10) Laya_示例(7)
...行默认加载赋值 this.storelist.renderHandler=new Handler(this,onRender);//当list刷新时触发 并发送Box,index this.storelist.mouseHandler = new Handler(this,onMouse);//当list被点击时触发 并发送event,index }...
来源: Laya_社区 发布时间: 20180503
...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
...面 写 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
...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
...理碰撞 OnTriggerEnter 第三个参数 contact.getHitInfo() 报错 new this.box2d box2d 是undefined 请问这里的 this 指向是 ?? contact.getHitInfo = function () { var manifold = new this.box2d.b2WorldManifold(); this.GetWorldManifold...
来源: Laya_社区 发布时间: 20220819
...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
...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
...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
...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
...例如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Tree }) public tree: Laya.Tree; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //初始化树状...
来源: Laya3.0_文档 发布时间: 20240910