大约有 7,546 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0104 秒)
Laya_社区(6825) Laya2.0_文档(183) Laya3.0_api(118) laya_api(102) Laya2.0_api(90) Laya_示例(86) Laya3.0_文档(85) Laya2.0_示例(57)
...可多选),创建一个空父节点 Ctrl + shift + G 2D的空节点是Sprite,3D的空节点是Sprite3D 1.3.2 展开全部子节点:Alt + 鼠标左键单击 正展情况下,单击节点前的三角箭头,会展开一层子节点。 当使用 Alt + 鼠标左键单击 的组合功能键后...
来源: Laya3.0_文档 发布时间: 20251010
...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
...: 2 人 LeslieZzz • 2018-06-19 18:03 您是指 在将纹理传入myShaderSprite类的时候小图要做处理? x8? LeslieZzz • 2018-06-19 18:06 /* 该类需继承自显示对象类 在该类中使用了自定义的着色器程序 注意:使用自定义着色器时,需要设置该显示...
来源: Laya_社区 发布时间: 20180619
... //平面加载 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
...景内 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
...tyPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale LayaAirIDE下如何使用mask? 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 微信小游戏:HTMLDivElement的...
来源: Laya_社区 发布时间: 20160920
...这样的脚本里,实现IDE的可视化操作!例如,建立了一个Sprite预制体,在预制体里用Preloads加载了字体,然后在脚本里,使用了,fillText进行绘制文字,在运行的时候可以显示出字体效果来,但是在IDE里还是默认字体!很奇怪! 1...
来源: Laya_社区 发布时间: 20250910
...动播放。我们要怎么控制动画的播放呢? LayaAir 3D引擎的Sprite3D类提供了 `getComponent()` 方法来获取模型上的组件。带动画的模型在加载创建时引擎默认赋予了Animator动画组件,因此我们可以获取它,参考以下代码。 ```typescript //获...
来源: Laya2.0_文档 发布时间: 20210715
...tyPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale TS项目使用matter.js库无智能提示 微信小游戏:HTMLDivElement的使用 使用3D时候,Property 'getComponentByType' does not exist on...
来源: Laya_社区 发布时间: 20180919
...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