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

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

131. 对接上架字节跳动小游戏技术指南(TypeScript-小游戏适配文档-字节跳动小游戏) [ 30%]

...rt({ duration: data.duration }); //监听录屏开始事件 this._recorder.onStart((res)=>{ console.log("录屏开始 res:" + JSON.stringify(res)); }); //监听录屏错误事件 this._recorder.onError((errMsg)=>{ console.log("录屏错误 errMsg:" + errMsg); }); } } /** * 停止录屏, * 开发...

来源: Laya2.0_文档 发布时间: 20210715

132. ProtocolBuffer通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 29%]

...cript { private ChatMessage: any; private socket: WebSocket | null = null; onStart() { console.log("Game start"); // 初始化 protobuf this.initializeProtobuf(); // 初始化 WebSocket 连接 this.initializeWebSocket(); } // 初始化 protobuf 并加载消息定义 private initializeProtobuf() { //...

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

133. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 27%]

...: void { this.txt.text = "第{n=1}页"; //显示文本的初始化内容 } onStart(): void { let page: number = 1; Laya.timer.frameLoop(10, this, () => { page += 1; //在定时器中让变量page每次自增1 this.txt.setVar("n", page); //使用setVar方法,让text文本中变量n的值动态...

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

134. 3D中摄像机绕物体旋转该如何实现? [ 27%]

...ra: Laya.Camera; constructor() { super(); } public transform: Transform3D; onStart(): void { this.transform = (this.owner as Laya.Sprite3D).transform; this.CurrentAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); this.targetAngles = new Vector3(-this.transform...

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

135. 官方案例里摄像机绕物体旋转脚本的问题 [ 27%]

...ra: Laya.Camera; constructor() { super(); } public transform: Transform3D; onStart(): void { this.transform = (this.owner as Laya.Sprite3D).transform; this.CurrentAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); this.targetAngles = new Vector3(-this.transform...

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

136. 3D粒子 · LayaAir3.3 · 引擎文档 · LAYABOX [ 20%]

...nds Laya.Script { //粒子特效的路径 private filePath = "FireEffect"; onStart() { console.log("Game start"); //加载粒子特效资源 Laya.loader.load(this.filePath, Handler.create(this, () => { })); } //每次鼠标点下屏幕后,会创建一个特效 mouseDown(e: Event): void { var pa...

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

137. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 20%]

...nds Laya.Script { //粒子特效的路径 private filePath = "FireEffect"; onStart() { console.log("Game start"); //加载粒子特效资源 Laya.loader.load(this.filePath, Handler.create(this, () => { })); } //每次鼠标点下屏幕后,会创建一个特效 mouseDown(e: Event): void { var pa...

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

138. 动画状态机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 16%]

...ite3D } ) private target: Laya.Sprite3D; private animator : Laya.Animator; onStart() { this.label.on( Laya.Event.CLICK, this, this.test ); //获得状态机 this.animator = this.target.getComponent<Laya.Animator>(Laya.Animator); } //运行状态机的跑动画,可使用动作融合方式 tes...

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

139. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 10%]

...录的结构,或者进行必要的检查和安装等。 * @param task */ onStart?(task: IBuildTask): Promise<void>; /** * 正在收集需要发布的资源。assets集合是系统根据依赖、resources目录规则等所有有效的规则收集的所有需要发布的资源对象,你可...

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

140. lib/arm/liblayaair.so 总是崩溃 [ 7%]

...ification()0|0|10000 08-14 10:57:51.464 5115-5115/? I/HwLauncher: Launcher onStart()     Launcher dynamicIconsRegister     DynamicUpdater registerReceiver 08-14 10:57:51.464 3526-5072/? I/HwActivityManagerService: ProcessRecord ProcessRecord{1a72829 9944:com.huawei.health:DaemonService/u0a106} i...

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