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

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

1. 场景管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

...中,无论是创建场景Scene,页面View,对话框Dialog,3d场景scene3d,文件类型和后缀都是scene。但是3.0中场景的划分有所区别,不再是统一的后缀scene方式。 一、IDE中的场景 1.1 新建场景 使用IDE新建一个3D项目,在IDE中创建一个场景...

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

2. 模型与动画的导入使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 83%]

...bx自带的骨骼蒙皮动画文件,也是自身待机动画 将Fbx拖入Scene3D场景下,可以看到模型,但是没有贴图和动画,下面先介绍如何为LayaMonkey添加材质和贴图 (图2) 2,贴图设置关联 将贴图文件放入Assets下 (图3) 需要创建一个材...

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

3. 视频 · LayaAir3.3 · 引擎文档 · LAYABOX [ 79%]

... Script extends Laya.Script { declare owner: Laya.Sprite3D; @property(Laya.Scene3D) private scene: Laya.Scene3D; private videoPlane: Laya.Sprite3D; private videoTexture = new Laya.VideoTexture(); onAwake(): void { //获取场景中要添加视频纹理的3D节点 this.videoPlane = this.scene.getChil...

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

4. 抖音小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 77%]

...ends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //小游戏加载分包 Laya.loader.l...

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

5. 支付宝小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 76%]

...egClass() export class Script extends Laya.Script { @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //支付宝小游戏 Laya.loader.loadPackag...

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

6. 组件装饰器说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

... } ) //摄像机类型 private camera: Laya.Camera; @property( { type:Laya.Scene3D } ) //3D场景根节点类型 private scene3D: Laya.Scene3D; @property( { type:Laya.DirectionLightCom } ) //DirectionLight组件类型 private directionLight: Laya.DirectionLightCom; @property( { type:Laya.Sprite3D } ...

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

7. vivo小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...ends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //小游戏加载分包 Laya.loader.l...

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

8. 微信小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

...ends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //小游戏加载分包 Laya.loader.l...

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

9. 预制体模块 · LayaAir3文档 · LAYABOX [ 63%]

...pe : Laya.Camera } ) private camera: Laya.Camera; @property( { type : Laya.Scene3D } ) private scene: Laya.Scene3D; onStart() { console.log("Game start"); //加载预制体文件 Laya.loader.load("resources/Prefab.lh").then( (res)=>{ //创建预制体 let monkey: Laya.Sprite3D = res.create(); //...

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

10. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

...pe : Laya.Camera } ) private camera: Laya.Camera; @property( { type : Laya.Scene3D } ) private scene: Laya.Scene3D; onStart() { console.log("Game start"); //加载预制体文件 Laya.loader.load("resources/Prefab.lh").then( (res)=>{ //创建预制体 let monkey: Laya.Sprite3D = res.create(); //...

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