大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0077 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...script //加载模型 Sprite3D.load("Conventional/shoot.lh",Handler.create(this,function(sp:Sprite3D):void{ var cube:MeshSprite3D = sp.getChildAt(0) as MeshSprite3D; //获取物理碰撞器 var cubeCollider:PhysicsCollider = cube.getComponent(PhysicsCollider); })); ```
来源: Laya2.0_文档 发布时间: 20210714
...nect to runtime process, timeout after 10000 ms - (reason: Can't attach to this target that may have Chrome DevTools attached - file:///E:/xxxxxxx/bin/index.html). 因为 我再layaari 模拟器 下面 调试了 F12后 模拟器 就会和代码断开!我重新运行 会打开多个模拟器 导致...
来源: Laya_社区 发布时间: 20170613
...onsole.log("=mask container=>>", s.width, s.height)//打印出是0,0 this.scrollContainer.mask = s;//scrollContainer是一个有宽高的Box,为什么打印出的s的宽高是0,0,只要设置了mask,chrorme就会警告cache bitmap size larger than 2048,cache ignored 2018-08-28 添加...
来源: Laya_社区 发布时间: 20180828
...}; constructor(){ super()} createChildren():void { super.createChildren(); this.createView(HelloUI.uiView); } } REG("ui.HelloUI",HelloUI); } 附件 : --> TestDemo.zip 2019-06-25 2 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0...
来源: Laya_社区 发布时间: 20190625
...节点被添加到舞台后 onEnable(): void { let a = this.owner.getChildByName("Sprite3D") as Laya.Sprite3D; console.log(a,typeof(a)) let aa = a.addComponent(Laya.Rigidbody3D); } 报错 TypeError: Cannot read properties of undefined (reading &...
来源: Laya_社区 发布时间: 20240102
... Laya.stage.setGlobalRepaint(); this.destroy(); } public static function getTextTexture(w:int, h:int):TextTexture { return new TextTexture(w, h); } 2020-11-23 0...
来源: Laya_社区 发布时间: 20190515
...用tiledmap提示undefined是为什么,是2.0以后就不支持了吗? this.tMap =new laya.map.TiledMap; 执行后直接报下面的错误。 TypeError: Cannot read property 'TiledMap' of undefined 2018-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...
来源: Laya_社区 发布时间: 20181012
...h = 960; bmp.height = 640; var sp:Sprite = new Sprite(); sp.addChild(bmp); this.addChildAt(sp, 0); Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT; sp.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchBegin); } protected function onTouchBegin(event:TouchEvent):void { log(event.touchPointID.toSt...
来源: Laya_社区 发布时间: 20160122
...须先设置target 再play let fly = new ui.com.fightflyUI; fly.target = this.ui.flyImg; fly.play(0,true); 2018-06-08 1 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: https://ldc.layabox.com/doc/?nav=zh-as-1-5-3 http://ldc.layabox.com/doc/?nav=zh-as-2-4-0 看看文档,多做尝试就知道...
来源: Laya_社区 发布时间: 20180530
...的代码还是脚本里面的,如果是在runtime中的,是要使用this.onUpdate()去调用的。 在编辑的时候两种onUpdate也是有差异的,extends Laya.Script的脚本中的onUpdate,鼠标移上去是有功能说明的:每帧更新时执行,尽量不要在这里写大循环...
来源: Laya_社区 发布时间: 20190221