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

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

91. sprite.mask的疑问 [ 62%]

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

92. Laya3D场景加载问题 [ 61%]

...Index(scene, 0);         //获取相机         var camera = scene.getChildByName("Main Camera");         console.log("test====================:" + Laya.version)     } }   问题一:          小米note3:正常          华为p30:报错             问题二:    ...

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

93. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 61%]

...存和内存就会显示成负数 创建动效模板 可能存在bug 使用getChildByName()无法得到子节点对象 问题状态 最新活动: 2020-01-11 21:48 浏览: 1528 关注: 5 人

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

94. laya.d3.core.light.LightSprite_API3.0 [ 61%]

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

95. 3D场景跳转到2D场景问题 [ 61%]

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

96. Laya场景编辑时加入的Graphics组件,代码中该如何获取? [ 61%]

...声明、获取: 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

97. laya.d3.core.light.PointLight_API3.0 [ 60%]

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

98. LayaUISample.max.js:321 Uncaught TypeError: Cannot set property 'text' of null [ 60%]

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

99. unity导出3d默认模型。代码添加网格碰撞必先错误 [ 60%]

...对,建议看看官网示例,附下正确代码   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

100. laya.d3.core.BaseCamera_API3.0 [ 60%]

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