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

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

61. 2D拖尾渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 34%]

...渲染器的示例代码 */ export class NewScript extends Laya.Script { declare owner: Laya.Sprite; private _trail2D: Laya.Trail2DRender; //从场景文件中获取到的宽度曲线数据 private _widthCurve: any[]; //从场景文件中获取到的颜色渐变数据 private _gradient: any; //组...

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

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

...perty } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Prefab }) private loadingScenePrefab: Laya.Prefab; private loadingScene: Laya.Node; constructor() { super(); } /** * 第一次执行update之前执行,只会执行一次...

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

63. 2D相机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 31%]

...加到2D场景中查看效果 */ export class Script extends Laya.Script { declare owner : Laya.Scene; area2D: Laya.Area2D; camera2D: Laya.Camera2D; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.createCamera2D(); } create...

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

64. 2.x引擎项目升级说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 30%]

...要在场景继承类上runtime通过this.xxx访问,那把name后面的 Declare Var给勾选上即可导出该属性到场景的基类里。 3.0不再把场景类统一生成到一个文件里,而是生成到Runtime类的同级目录,当为runtime指定一个场景类后,该场景类的同...

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

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

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

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

66. TS项目中怎么使用promise [ 29%]

...eLike<T>): Promise<T>;     resolve(): Promise<void>; } declare var Promise: PromiseConstructor; 2018-07-17 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 186*****643 相关问题 LayaAir3D Un...

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

67. [LayaNative3]2d示例程序构建发布打包后,在OpenHarmony运行闪退 [ 29%]

... sure the corresponding .d.ts file is provided and the napis are correctly declared. WARN: ArkTS:WARN File: /Users/HonestQiao/Documents/Laya/LayaProject1/release/harmony/LayaProject1/libSysCapabilities/src/main/ets/system/sound/SoundUtils.ts:3:18 Currently module for 'liblaya.so' is not verified. If...

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

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

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

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

69. 预制体模块 · LayaAir3文档 · LAYABOX [ 26%]

...roperty } = Laya; @regClass() export class ScriptA extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (res)=>{ //创建预...

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

70. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 26%]

...roperty } = Laya; @regClass() export class ScriptA extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (res)=>{ //创建预...

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