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

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

111. uglify压缩后的错误堆栈解析 [ 84%]

uglify压缩后的错误堆栈解析 1、js的压缩工具:.laya/publish.js 中 // 压缩js gulp.task("compressJs", ["compressJson"], function () { if (config.compressJs) { return gulp.src(config.compressJsFilter, { base: releaseDir }) .pipe(sourcemaps.init({loadMaps:true})) .pipe(uglify({ mangle...

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

112. App 运行一段时间卡 [ 84%]

...找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 请提供一下游戏地址,还有游戏的log 2018-12-04 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 出现严重卡顿、屏幕闪烁现象 在LayaPlayer下运行项目,如果出现...

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

113. Ts简单对象池 [ 83%]

...象池中 ClearPool 清理对象池,将指定对象池中的物体放到Laya默认的内存回收机制中,等待回收 备注: 使用时需将某一类对象池与该对象池对应的编号对应好,否则使用时会出问题 */   export default class PoolManager { static _instance:any; ...

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

114. 是否支持条件编译? [ 83%]

...被折叠 要回复问题请先登录 发起人 lilynumber1 相关问题 Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面没有使用命名空间类文件的定义!导致运行时 找不到类的定义!这是为什么? 已上传 Demo 附件 请问有没有方法能够获取“鼠标...

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

115. 使用getChildByName()无法得到子节点对象 [ 83%]

...找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 谢 截图上面很明显 变量var 名字为 text  name 为“” 所以要仔细了解属性都代表什么。 2018-07-17 1 0 分享 微博 QZONE 微信 熊猫大侠 赞同来自: 谢 name属性都...

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

116. 关于HttpRequest [ 83%]

...ON.stringify(obj); var s:string = CommonUtils.urlEncode(obj); var hr = new Laya.HttpRequest(); hr.once(Laya.Event.PROGRESS, this, function (e) { console.log(e); }); hr.once(Laya.Event.COMPLETE, this, function () { console.log(hr.data); }); hr.once(Laya.Event.ERROR, this, function (e) { console.log(e...

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

117. iOS-App内购(TypeScript-LayaNative原生服务-LayaNative进阶) [ 83%]

...具开发, 最终都需要通过Apple提供的IAP方式完成交易.   Layabox为了帮助开发者节省IAP相关接口的调试时间, 封装了这部分的相关接口, 并通过JavaScript语言提供给开发者直接调用或者进行扩展.   IAP的流程非常简单, 客户端直接...

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

118. linearVelocity 获取的线速度不正确 [ 83%]

...得到的线速度完全是不正确的       let vectory = new Laya.Vector3(-Math.cos(this.angle) * this.v,0,0);         // this.rigidbody.applyForce(vectory);         this.rigidbody.linearVelocity = vectory;         console.log("施加的线速度:");    ...

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

119. HttpRequest在网页上和APP上表现不一致 [ 83%]

...APP上表现不一致 let url = "http://10.1.1.123:9090/pgame/s ... 3B%3B Laya.timer.loop(30000, this, ()=>{     let hr = new Laya.HttpRequest();     hr.http.timeout = 3000;     hr.http.ontimeout = function(){console.log("http timeout test: timeout")};     hr.once(Laya.Event.COMPLETE, thi...

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

120. Laya.stage.mouseX; Laya.stage.mouseY取到的坐标用来赋给画曲线方法的起点;在左顶点正常,越往右下角起点就越偏移了 [ 83%]

Laya.stage.mouseX; Laya.stage.mouseY取到的坐标用来赋给画曲线方法的起点;在左顶点正常,越往右下角起点就越偏移了 // 程序入口 class GameMain { private ps: Laya.Sprite; a: number; b: number; path: Array<number> = ; constructor() { Laya.init(1600, 1400); La...

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