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

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

7451. IDE快捷键与鼠标交互操作大全 · LayaAir3.4 · 引擎文档 · LAYABOX [ 41%]

...可多选),创建一个空父节点 Ctrl + shift + G 2D的空节点是Sprite,3D的空节点是Sprite3D 1.3.2 展开全部子节点:Alt + 鼠标左键单击 正展情况下,单击节点前的三角箭头,会展开一层子节点。 当使用 Alt + 鼠标左键单击 的组合功能键后...

来源: Laya3.0_文档 发布时间: 20251010

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

...l/Effect_zhujue_attack.lh");             let tarItem = Laya.Sprite3D.instantiate(item);             this.scene.addChild(tarItem);             tarItem.transform.position = new Laya.Vector3(0, 0, 0);             item.destroy();          ...

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

7453. 为什么自定义shader大图正常,小图就被缩小了 [ 41%]

...: 2 人 LeslieZzz • 2018-06-19 18:03 您是指 在将纹理传入myShaderSprite类的时候小图要做处理? x8? LeslieZzz • 2018-06-19 18:06 /* 该类需继承自显示对象类 在该类中使用了自定义的着色器程序 注意:使用自定义着色器时,需要设置该显示...

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

7454. 3D网格添加刚体后设置欧拉角出现位置错误 [ 41%]

...  //平面加载         let plane = this.scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10)));         plane.transform.position = new Laya.Vector3(0, -2, 0);         let planeMat = new Laya.BlinnPhongMaterial();         Laya.Texture2D.load("res/thre...

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

7455. 模型与动画的导入使用 · LayaAir3.4 · 引擎文档 · LAYABOX [ 41%]

...景内 Laya.loader.load("girl/girl.lh").then(res => { let girl : Laya.Sprite3D = res.create(); this.scene3D.addChild(girl); //获得Animator this._animator = girl.getComponent<Laya.Animator>(Laya.Animator); }); this.on( Laya.Event.MOUSE_DOWN, this, this.switchAni ); } switchAni(): void { if...

来源: Laya3.0_文档 发布时间: 20251010

7456. 使用layaAirIDE打包APK问题 [ 41%]

...tyPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale LayaAirIDE下如何使用mask? 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 微信小游戏:HTMLDivElement的...

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

7457. [LayaAirIDE3]应该如何定义@property才能像GTextField一样加载字体? [ 41%]

...这样的脚本里,实现IDE的可视化操作!例如,建立了一个Sprite预制体,在预制体里用Preloads加载了字体,然后在脚本里,使用了,fillText进行绘制文字,在运行的时候可以显示出字体效果来,但是在IDE里还是默认字体!很奇怪! 1...

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

7458. 播放动画(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 41%]

...动播放。我们要怎么控制动画的播放呢? LayaAir 3D引擎的Sprite3D类提供了 `getComponent()` 方法来获取模型上的组件。带动画的模型在加载创建时引擎默认赋予了Animator动画组件,因此我们可以获取它,参考以下代码。 ```typescript //获...

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

7459. 官方文档里的位图字体的制作与使用JS 跑不通 以及 文档的几个问题 [ 41%]

...tyPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale TS项目使用matter.js库无智能提示 微信小游戏:HTMLDivElement的使用 使用3D时候,Property 'getComponentByType' does not exist on...

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

7460. 3D中摄像机绕物体旋转该如何实现? [ 41%]

...sform: Transform3D; onStart(): void { this.transform = (this.owner as Laya.Sprite3D).transform; this.CurrentAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); this.targetAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); t...

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