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

大约有 196 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0040 秒)

121. 使用Laya3D插件导出,为什么空节点信息全都没了,gameObkect setting并没勾选 [ 56%]

...分享使用protobuff框架的游戏demo(TS版本或AS版本的) 使用getChildByName()无法得到子节点对象 LayaAirIDE1.4版本里用TS引擎库使用view嵌套发布html5报"Uncaught TypeError:Cannot set property 'y' of null"的解决方案 unity 粒子特效 laya插件有问题? ...

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

122. 在Unity中设置动画事件(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 56%]

...n(scene) { Laya.stage.addChild(scene); //获取cube对象 var cube = scene.getChildByName("Cube") as Laya.Sprite3D; //添加组件(脚本) var _script = cube.addComponent(SceneScript) as SceneScript; //label用于显示 var _lab = new Laya.Label(); _lab.text = "test"; _lab.height = 100; _lab.width =...

来源: Laya2.0_文档 发布时间: 20210715

123. 在Unity中设置动画事件(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 55%]

...e.addChild(scene) as Scene3D; //获取cube对象 var cube:Sprite3D = scene.getChildByName("Cube"); //添加组件(脚本) var _script:SceneScript = cube.addComponent(SceneScript); //label用于显示 var _lab:Label = new Label(); _lab.text = "test"; _lab.height = 100; _lab.width = 100; _lab.fontSize...

来源: Laya2.0_文档 发布时间: 20210715

124. 动画挂点(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 55%]

...Texture = tex; })); box.meshRenderer.material = material; var monkey = res.getChildByName("LayaMonkey"); //查找节点 var bonePoint:Sprite3D = this.findChild(monkey,"bonepoint"); //将盒子精灵添加到找到的骨骼节点上 bonePoint&&bonePoint.addChild(box); })); ``` > 节点查找 ```types...

来源: Laya2.0_文档 发布时间: 20210715

125. 动画挂点(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 55%]

...Texture = tex; })); box.meshRenderer.material = material; var monkey = res.getChildByName("LayaMonkey"); //查找节点 var bonePoint:Sprite3D = this.findChild(monkey,"bonepoint"); //将盒子精灵添加到找到的骨骼节点上 bonePoint&&bonePoint.addChild(box); })); ``` > 节点查找 ```types...

来源: Laya2.0_文档 发布时间: 20210714

126. 材质的功能介绍(TypeScript-3D基础(TS)-LayaAir3D之Material材质) [ 54%]

...e.ls")) as Laya.Scene3D; //从场景获取球型精灵 this.sphere = scene.getChildByName("Sphere") as Laya.MeshSprite3D; //获取球型精灵自带的BlinnPhong材质 this.billinMaterial = this.sphere.meshRenderer.material; ``` > 拿到材质之后,我们可以修改材质或者将这个材质给...

来源: Laya2.0_文档 发布时间: 20210715

127. 升级到3.0-beta6无法选择资源了 [ 52%]

...自动生成了? 发布到vivo平台后,龙骨动画无法显示 使用getChildByName()无法得到子节点对象 分享:LayaAir下如何获取图集下的小图资源? 点击代码编辑模器 就提示无法打开代码编辑器 请配置 这个怎么解决? Laya["MiniAdpter"].nativ...

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

128. meshRender修改材质问题 [ 50%]

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

129. laya.display.Node_API3.0 [ 49%]

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

130. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 48%]

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