大约有 346 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
Laya_社区(129) Laya3.0_api(79) Laya2.0_api(73) Laya2.0_文档(36) laya_api(18) Laya_示例(6) Laya3.0_文档(5)
...{ let a:Sprite = Laya.stage.getChildAt(0).getChildAt(0).getChildByName("A") as Sprite; let b:Sprite = Laya.stage.getChildAt(0).getChildAt(0).getChildByName("B") as Sprite; b.removeSelf(); a.mask = b; } 2020-08-14 0 2...
来源: Laya_社区 发布时间: 20200813
...Index(scene, 0); //获取相机 var camera = scene.getChildByName("Main Camera"); console.log("test====================:" + Laya.version) } } 问题一: 小米note3:正常 华为p30:报错 问题二: ...
来源: Laya_社区 发布时间: 20190925
...存和内存就会显示成负数 创建动效模板 可能存在bug 使用getChildByName()无法得到子节点对象 问题状态 最新活动: 2020-01-11 21:48 浏览: 1528 关注: 5 人
来源: Laya_社区 发布时间: 20191102
...lone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName ...
来源: Laya3.0_api 发布时间: 20231115
...ctorySceneUI { constructor() { super(); } onAwake(){ let btnOnce=this.getChildByName("btnOnce"); btnOnce.on(Laya.Event.CLICK,this,this.onClick); } onClick(e){ this.removeSelf(); let gameScene=new GameScene(); Laya.stage.addChild(gameScene); } } 求大佬教学 2019-09-03 添加评论 免费帖 ...
来源: Laya_社区 发布时间: 20190903
...声明、获取: private backBtn: Laya.Button; this.backBtn = this.scene.getChildByName('backBtn') as Laya.Button;但这个Rect就不知道是什么类型的了,试了下Laya.Rect/Laya.Graphics.Rect之类的,都没有这个类。 附件 : --> 2019-10-22 1 条评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20191022
...lone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName ...
来源: Laya3.0_api 发布时间: 20231115
...ncaught TypeError: Cannot set property 'text' of null var txt:Label = cell.getChildByName("listNumber") as Label; txt.text = data.listNumber; 调试时会报:LayaUISample.max.js:321 Uncaught TypeError: Cannot set property 'text' of null 引擎版本 LayaAirAS3_1.7.7_beta 2017-06-28 添加...
来源: Laya_社区 发布时间: 20170628
...对,建议看看官网示例,附下正确代码 this.role = scene3D.getChildByName("Cube") as Laya.MeshSprite3D; let phy: Laya.PhysicsCollider = this.role.addComponent(Laya.PhysicsCollider) as Laya.PhysicsCollider; let mesh:Laya.Mesh = Laya.loader.getRes("res/Conventional/Library/unity defa...
来源: Laya_社区 发布时间: 20191026
...lone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeAllLayers removeChild removeChildAt re...
来源: Laya3.0_api 发布时间: 20231115