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

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

31. 分享:Laya开发TS项目使用pomelo客户端SDK(pomelo-jsclient-websocket) [ 40%]

...,API也就几个函数,自行扩展另说,拿我自己的先抛个砖declare class PomeloClient { init(params:any, cb?:Function); request(route:string, msg?:any, cb?:Function); notify(route:string, params:any); on(event:string, cb:Function); off(event:string, cb:Function); disconnect(); } 我...

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

32. 抖音小游戏 · LayaAir3.0文档 · LAYABOX [ 40%]

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

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

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

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

34. 预制体模块 · LayaAir3.0文档 · LAYABOX [ 35%]

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

35. vivo小游戏 · LayaAir3.0文档 · LAYABOX [ 31%]

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

36. 微信小游戏 · LayaAir3.0文档 · LAYABOX [ 29%]

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

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

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

38. 通用发布 · LayaAir3.0文档 · LAYABOX [ 16%]

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

39. laya.display.Text_API3.0 [ 11%]

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

40. laya.display.Input_API3.0 [ 7%]

...Inherited from Text._onPostLayout 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 Inherited from Text._parseEscape...

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