大约有 201 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0053 秒)
Laya3.0_api(79) Laya_社区(67) Laya2.0_文档(17) Laya2.0_api(15) laya_api(14) Laya3.0_文档(5) Laya_示例(4)
...e.ls")) as Laya.Scene3D; //从场景获取球型精灵 this.sphere = scene.getChildByName("Sphere") as Laya.MeshSprite3D; //获取球型精灵自带的BlinnPhong材质 this.billinMaterial = this.sphere.meshRenderer.material; ``` > 拿到材质之后,我们可以修改材质或者将这个材质给...
来源: Laya2.0_文档 发布时间: 20210715
...自动生成了? 发布到vivo平台后,龙骨动画无法显示 使用getChildByName()无法得到子节点对象 分享:LayaAir下如何获取图集下的小图资源? 点击代码编辑模器 就提示无法打开代码编辑器 请配置 这个怎么解决? Laya["MiniAdpter"].nativ...
来源: Laya_社区 发布时间: 20230412
...ya.Vector3(0,0,0),false); warehouseMeshSprite3D1= warehouse1.getChildAt(0).getChildByName("Mesh1"); var material = warehouseMeshSprite3D1.meshRender.material; material.albedo = new Laya.Vector4(1,0,0,1);换了一个模型就不行了,模型文件如下 会提示报错信息: TypeError: Cannot...
来源: Laya_社区 发布时间: 20171226
...imer 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
...er.parent as Laya.Scene3D; this._text = this._scene.parent.getChildByName("ceshi") as Laya.Text; this._camera = this._scene.getChildByName("camera") as Laya.Camera; } onUpdate(){ var touchCount = this._scene.input.touchCount(); if (1 === touchCount){ ...
来源: Laya_社区 发布时间: 20190605
...存和内存就会显示成负数 创建动效模板 可能存在bug 使用getChildByName()无法得到子节点对象 问题状态 最新活动: 2020-01-11 21:48 浏览: 1528 关注: 5 人
来源: Laya_社区 发布时间: 20191102
...是与美术事先约定好的。确认层级后可以过getChildAt()、或getChildByName()等方法获取模型后,再获取动画组件。** 还有一种备选方案:在获取动画组件之前,可以打开.ls或.lh查看有动画组件模型的层级关系,再去获取模型与动画组...
来源: Laya2.0_文档 发布时间: 20210715
...tateInfo.playState = playstate; this._label = animator.owner.scene.scene2D.getChildByName("Label"); } constructor() { super(); } /** * 动画状态开始时执行。 */ onStateEnter(): void { console.log("动画开始播放了"); this._label.text = "开始跑动画"; } /** * 动画状态运行中 * ...
来源: Laya3.0_文档 发布时间: 20251010
...ToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_height get_scaleX get_scaleY get_transform get_visible get_width globalToLocal hasHideFlag hasListener hitTes...
来源: Laya3.0_api 发布时间: 20231102
...ToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_height get_scaleX get_scaleY get_transform get_visible get_width globalToLocal hasHideFlag hasListener hitTes...
来源: Laya3.0_api 发布时间: 20231102