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

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

3581. 物理碰撞器(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 50%]

...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

3582. Cannot connect to runtime process, timeout after 10000 ms [ 50%]

...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

3583. 代码和ide编辑器添加遮罩浏览器警告 [ 50%]

...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

3584. 内嵌模式创建scene,运行时报找不到json文件 [ 50%]

...}; constructor(){ super()} createChildren():void { super.createChildren(); this.createView(HelloUI.uiView); } } REG("ui.HelloUI",HelloUI); } 附件 : --> TestDemo.zip 2019-06-25 2 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0...

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

3585. [LayaAir3]addComponent(Laya.Rigidbody3D); 报错 [ 50%]

...节点被添加到舞台后     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

3586. native上文本有多余线 [ 50%]

...          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

3587. layabox2.0 调用tiledmap提示undefined是为什么,是2.0以后就不支持了吗? [ 50%]

...用tiledmap提示undefined是为什么,是2.0以后就不支持了吗? this.tMap =new laya.map.TiledMap; 执行后直接报下面的错误。 TypeError: Cannot read property 'TiledMap' of undefined 2018-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

3588. LayaBox如何多点触摸? [ 50%]

...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

3589. EffectAnimation 可以将对象指定到Image,并用程式控制播放吗? [ 50%]

...须先设置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

3590. Laya2.0正式版2D官方demo测试有问题 [ 50%]

...的代码还是脚本里面的,如果是在runtime中的,是要使用this.onUpdate()去调用的。 在编辑的时候两种onUpdate也是有差异的,extends Laya.Script的脚本中的onUpdate,鼠标移上去是有功能说明的:每帧更新时执行,尽量不要在这里写大循环...

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