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

大约有 61 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0052 秒)

51. 场景管理 · LayaAir3.0文档 · 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_文档 发布时间: 20230717

52. vivo小游戏 · LayaAir3.0文档 · 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_文档 发布时间: 20240926

53. 2.x引擎项目升级指南 · LayaAir3.0文档 · LAYABOX [ 30%]

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

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

54. 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

55. 微信小游戏 · LayaAir3.0文档 · 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_文档 发布时间: 20240528

56. 预制体模块 · LayaAir3.0文档 · 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_文档 发布时间: 20240106

57. 插件开发说明 · LayaAir3.0文档 · LAYABOX [ 25%]

...") export class MyPanel extends IEditor.EditorPanel { private _data : any; declare _panel : IEditor.InspectorPanel; async create() { this._panel = IEditor.GUIUtils.createInspectorPanel(); Editor.typeRegistry.addTypes([ { name : "MyPanelType", //请注意,名字是全局唯一的,一定要长 pro...

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

58. 时间轴动画编辑详解 · LayaAir3.0文档 · LAYABOX [ 19%]

...property } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } event1(p1:any, p2:any): void { console.log("event1",p1,p2); } } 在脚本中创建event1的方法和接收两个参数,最后我们来运行动画,看看运行结...

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

59. 通用发布 · LayaAir3.0文档 · LAYABOX [ 15%]

...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_文档 发布时间: 20240926

60. laya.display.Text_API3.0 [ 7%]

...yout _onPostLayout: () => void Defined in laya/display/Text.ts:203 Type declaration (): void Returns void _ownGraphics _ownGraphics: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _parseEscapeChars _parseEscapeChars: boolean Defined in laya/display/Text.ts:...

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