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

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

111. socket大型项目回调 [ 45%]

...odule PomeloLaya{ export class Pomelo{ static DEBUG:boolean = true; static EVENT_IO_ERROR:string = "io-error"; static EVENT_CLOSE:string = "close"; static EVENT_KICK:string = "onKick"; static EVENT_HEART_BEAT_TIMEOUT:string = 'heartbeat timeout'; private JS_WS_CLIENT_TYPE:string = 'js-websocket'; pr...

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

112. laya.ui.DialogManager_API3.0 [ 44%]

...ve addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer close closeAll closeByGroup contains customRender destroy destroyChildren doClose doOpen drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt get...

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

113. 淘宝创意互动分包指南(TypeScript-小游戏适配文档-淘宝创意互动) [ 44%]

...去加载分包和资源 ``` onConfigLoaded(): void { Laya.stage.on(Laya.Event.CLICK, this, this.toPage2) } toPage2(): void { my.redirectTo({ url: "/subpackage1/page2/index", success: function () { console.log("success") }, fail: function (err) { console.log("2222", err) } }) } ``` 注意:在加...

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

114. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 40%]

...nifests/vM7nH0Kl.m3u8');//加载m3u8源 hls.attachMedia(video); hls.on(Hls.Events.MANIFEST_PARSED,function():void{ video.play(); }); } plyr.setup(video); } } } ``` 编译运行代码,发现网页已经可以播放视频了。开发者可能注意到这里我们初始化引擎的时候是这样的...

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

115. 背景音乐来回切换报错 [ 40%]

...mainSound:Laya.SoundChannel = null;         this.btn_sound.on(Laya.Event.CLICK,this,function(){             dreamsSound = null;             if(mainSound == null){                 Laya.loader.load("res/main.mp3",Laya.Handler.create(this,function(){   ...

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

116. laya.ui.Dialog [ 40%]

...All Classes | Index | Frames No Frames DialogProperties | Methods | Events | Constants Packagelaya.uiClasspublic class DialogInheritanceDialog View Box Component Sprite Node EventDispatcher ObjectSubclasses AsynDialog Dialog 组件是一个弹出对话框,实现对话框弹出,拖动,...

来源: laya_api 发布时间: 20170929

117. 预制体模块 · LayaAir3文档 · LAYABOX [ 38%]

...en("./Scenes/Index.ls"); }); }); // 侦听加载失败 Laya.loader.on(Laya.Event.ERROR, this, this.onError); }); } /** * 当报错时打印错误 * @param err 报错信息 */ onError(err: string): void { console.log("加载失败: " + err); } /** * 加载时侦听 */ onLoading(progress: number): voi...

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

118. 关于在TS工程中引入微信JS-SDK的问题 [ 38%]

...题 ios原生回调问题 关于Dialog遮罩层移除解决问题的说明 event自定义事件的问题 问题状态 最新活动: 2018-08-16 20:39 浏览: 5141 关注: 3 人 kuma • 2018-07-24 19:47 现在的问题就是如果把微信的js文件引入到本地,在PC端的chrome中是能正确...

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

119. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 38%]

...en("./Scenes/Index.ls"); }); }); // 侦听加载失败 Laya.loader.on(Laya.Event.ERROR, this, this.onError); }); } /** * 当报错时打印错误 * @param err 报错信息 */ onError(err: string): void { console.log("加载失败: " + err); } /** * 加载时侦听 */ onLoading(progress: number): voi...

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

120. 2D寻路 · LayaAir3.3 · 引擎文档 · LAYABOX [ 37%]

...mpents(this._allAgent, sprite.scene, Nav2DAgent); } onMouseClick(evt: Laya.Event): void { let pos = new Laya.Vector2(evt.stageX, evt.stageY); console.log("click", pos); this._temp.graphics.clear(); this._allAgent.forEach((agent) => { agent.destination = pos; let paths = agent.getCurrentPath(); if...

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