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

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

141. 2D物理-碰撞事件与传感器 [ 63%]

... constructor() { this.count = 7; this.bodys = []; this.touching = []; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); Laya.PhysicsDebugDraw.enable(); Laya.Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.Laya.stage.alignH = Laya.Stage....

来源: Laya2.0_示例 发布时间: 20250312

142. demo中的2d和3d混合 加载ktx的资源 会白色的 其他ui没有问题 [ 62%]

...  //加载IDE指定的场景         Laya.loader.load([{url:"minastc.config.json",type:Laya.Loader.JSON}],new Laya.Handler(this,function(){             this.astcconfig = Laya.loader.getRes("minastc.config.json");             for(var key in this.astcconfig){                 v...

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

143. Sprite-屏幕截图 [ 62%]

...null; this.monkeyTexture = null; // 不支持WebGL时自动切换至Canvas Config.preserveDrawingBuffer =true; Laya.init(Browser.clientWidth, Browser.clientHeight); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_FIXED_AUTO; Laya.sta...

来源: Laya2.0_示例 发布时间: 20250312

144. 打包ios时,第第一次进入游戏闪退,第二次就没问题,报一下错误 [ 61%]

....937914+0800 qimiaomuchanIOS[5815:1707048] require(/sdcard/layabox/scripts/config.js) 2018-01-28 23:29:52.940149+0800 qimiaomuchanIOS[5815:1707048] found the file in the package:scripts/config.js 2018-01-28 23:29:52.961968+0800 qimiaomuchanIOS[5815:1707009] Download [ ]:http://petapp.thepubliccoin.c...

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

145. laya.net.Loader [ 61%]

...此侦听事件响应一次后自动移除。 EventDispatcher  setAtlasConfigs(url:String, config:Object):void[static] 设置预加载的图集配置文件 Loader  setGroup(url:String, group:String):void[static] 设置资源分组。 LoaderProtected Methods  MethodDefined By  complete(data:*)...

来源: laya_api 发布时间: 20170929

146. webstorm能编译ts代码到bundle.js 里面吗 [ 61%]

...加prevTasks let prevTasks = ""; if (global.publish) { prevTasks = ["loadConfig"]; } console.log("jsroads------prevTasks:" + JSON.stringify(prevTasks)); //使用browserify,转换ts到js,并输出到bin/js目录 gulp.task("compile", "", function () { // 发布时调用编译功能,判断是否...

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

147. 发布时勾选压缩js后,gulp uglify生成的sourcemap在哪里 [ 61%]

...task("compressJs", ["compressJson"], function () { if (config.compressJs) { return gulp.src(config.compressJsFilter, { base: releaseDir }) .pipe(sourcemaps.init({loadMaps:true})) .pipe(uglify({ mangle: { keep_fnames:true } })) .pipe(sourcemaps.write(releaseDir + '/../sourcemaps')...

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

148. 2D物理-桥 [ 60%]

...。class Physics_Physics_Bridge { constructor() { this.ecount = 30; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); Laya.PhysicsDebugDraw.enable(); Laya.Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.Laya.stage.alignH = Laya.Stage.AL...

来源: Laya2.0_示例 发布时间: 20250312

149. 为何发生此类报错Uncaught TypeError: Cannot read property '_tf' of null [ 59%]

...赞同来自: (function(){ var Stage=Laya.Stage; var WebGL=Laya.WebGL; var config=Config; (function(){ console.log("运行程序。"); Laya.init(1280,720,WebGL); //设置适配模式 Laya.stage.alignH=Stage.ALIGN_CENTER; Laya.stage.alignV=Stage.ALIGN_MIDDLE; Laya.stage.scaleMode="showall"; Laya.Stat...

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

150. 命令行打包 [ 58%]

命令行打包 --sdk 这个里面要放的config.json 具体要怎么写 ide 编译不能覆盖就罢了,命令行的 文档能不能好好完善下 2017-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cu...

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