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

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

1631. 同时使用雾和粒子系统,粒子的颜色变成雾的颜色 [ 39%]

...答(最新版本:1.7.16) TS项目使用matter.js库无智能提示 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale LayaAirIDE下如何使用mask? 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 微信小游戏如何使用ttf字体?...

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

1632. 材质-BlinnPhong-漫反射贴图 [ 38%]

...yCube.ltc"); camera.sky = skyBox; var earth1 = scene.addChild(new Laya.MeshSprite3D(new Laya.SphereMesh())); earth1.transform.position = new Laya.Vector3(-0.6, 0, 0); var earth2 = scene.addChild(new Laya.MeshSprite3D(new Laya.SphereMesh())); earth2.transform.position = new Laya.Vector3(0.6, 0, 0); v...

来源: Laya_示例 发布时间: 20260303

1633. laya.display.Node_API3.0 [ 38%]

...de 对象可以有子显示对象。 Hierarchy EventDispatcher Node Sprite Sprite3D Index Constructors constructor Properties _extra _scene _url name tag Accessors active activeInHierarchy components destroyed displayedInStage hideFlags is3D numChildren parent scene timer url Methods _initialize _pr...

来源: Laya3.0_api 发布时间: 20231115

1634. 3D物理系统 · LayaAir3.4 · 引擎文档 · LAYABOX [ 38%]

...m() * 0.5 + 0.8; //创建圆锥形3D模型节点对象 let cone = new Laya.Sprite3D; let coneMesh = cone.addComponent(Laya.MeshFilter); let coneRender = cone.addComponent(Laya.MeshRenderer); // 创建网格 coneMesh.sharedMesh = Laya.PrimitiveMesh.createCone(0.25, 0.75); // 创建材质 let coneMate...

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

1635. 输入文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 37%]

...export class TextInputControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextInput } ) public txtin: Laya.TextInput; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake():...

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

1636. laya.d3.core.Transform3D_API3.0 [ 37%]

... 局部缩放Z。 Parameters value: number Returns void owner get owner(): Sprite3D Defined in laya/d3/core/Transform3D.ts:119 所属精灵。 Returns Sprite3D position get position(): Vector3 set position(value: Vector3): void Defined in laya/d3/core/Transform3D.ts:392 世界位置。 Returns Vecto...

来源: Laya3.0_api 发布时间: 20231115

1637. 精灵 · LayaAir3.4 · 引擎文档 · LAYABOX [ 37%]

...lass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Sprite }) public sprite1: Laya.Sprite; @property({ type: Laya.Sprite }) public sprite2: Laya.Sprite; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均...

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

1638. 3D中如何限制角色的行走区域? [ 37%]

...ture2D, priority:1, params:[true]}        场景中初始化MeshTerrainSprite3D:               //通过场景中子父级节点寻找可行走区域网格模型               var meshSprite3D:MeshSprite3D = sceneSprite3d.getChildAt(0).getChildAt(0).getChildAt(13) as MeshSprite3D;...

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

1639. 程序蓝图 · LayaAir3.4 · 引擎文档 · LAYABOX [ 37%]

...了。 (图1-3) 不同的蓝图文件有不同的使用方式: 继承Sprite3D的蓝图直接拖到3D场景中使用 (也可拖到3D场景的层级目录)。 (图1-4) 继承UI派生类的蓝图直接拖到2D场景中使用 (也可以拖到2D场景的层级目录)。 (图1-5) 继...

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

1640. Mesh网格-自定义网格 [ 36%]

... Laya.Vector3(1, -1, -1); //平面 var plane = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(6, 6, 10, 10))); //正方体 var box = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(0.5, 0.5, 0.5))); box.transform.position = new Laya.Vector3(1.5, 0.25, 0.6); box.transform.rotate(new La...

来源: Laya_示例 发布时间: 20260303