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

大约有 98 项符合查询结果, 库内数据总量为 14,848 项。 (搜索耗时: 0.0243 秒)

1. 有没有浮雕滤镜? [ 100%]

...以下的滤镜和混合模式 /**@private 模糊滤镜。*/ public static const BLUR:int = 0x10; /**@private 颜色滤镜。*/ public static const COLOR:int = 0x20; /**@private 发光滤镜。*/ public static const GLOW:int = 0x08; public static const NAMES:Array = /*[STATIC SAFE]*/["normal", "add"...

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

2. const 用法 [ 98%]

LayaAir引擎 const 用法 const 什么使用啊!只能在函数中定义const吗,我定义成成员变量不行吗? 附件 : --> 2017-04-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同...

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

3. uglify压缩后的错误堆栈解析 [ 94%]

...、变量所在位置等元信息数据文件   在 publish.js 中添加 const sourcemaps = require(ideModuleDir + 'gulp-sourcemaps');   compressJs任务中添加.pipe(sourcemaps.init({loadMaps:true})) 和 .pipe(sourcemaps.write(releaseDir + '/../sourcemaps')) 会生成对应js文件的.js.map   ...

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

4. dialog 关闭效果在哪里关闭啊,,我在ide 属性面板都找不到 [ 90%]

...某个按钮命名为close,点击此按钮则会关闭*/ public static const CLOSE:String = "close"; /**对话框内的某个按钮命名为cancel,点击此按钮则会关闭*/ public static const CANCEL:String = "cancel"; /**对话框内的某个按钮命名为sure,点击此按钮则会关闭...

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

5. VSCODE高效再+1,自动刷新 [ 90%]

...服务。   我们离项目工程化,自动化又更近了一步。  const gulp = require('gulp'); const connect = require('gulp-connect'); const { exec } = require("child_process"); //源码 const entry = 'src/**/*.*'; function compile() { //执行编译命令 layaair2-cmd compile let process =...

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

6. [LayaAir3]脚本集怎么用? [ 90%]

... Main.ts  在 Main.ts 的 onStart 方法中。动态加载脚本集: ``` const { regClass, property } = Laya;  @regClass() export class Main extends Laya.Script {  async onStart() { console.log("Game start"); // 手动加载脚本集 const isSuccess = await Laya.loader.loadPackage("GScript"); // ...

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

7. 构建好android studio项目后,debug出错 [ 89%]

...ayaBox: alert=undefined:5155: SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode let runtime = json.props.runtime; ^^^ SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode at eval (native) a...

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

8. 深入理解LayaAir引擎架构和实现原理(二)项目调试原理及完美开发调试方案 [ 87%]

...件,设置false后,则使用自己环境(使用命令行方式执行) const useIDENode = process.argv[0].indexOf("LayaAir") > -1 ? true : false; const useCMDNode = process.argv[1].indexOf("layaair2-cmd") > -1 ? true : false; function useOtherNode(){ return useIDENode||useCMDNode; } //获...

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

9. 问下tiledmap类中的renderOrder应该怎么用 [ 86%]

...g 赞同来自:   /**地图格子从左上角开始渲染*/ public static const RENDERORDER_RIGHTDOWN:String = "right-down"; /**地图格子从左下角开始渲染*/ public static const RENDERORDER_RIGHTUP:String = "right-up"; /**地图格子从右上角开始渲染*/ public static const RENDERORD...

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

10. 关于laya图片资源缓存的问题 增量更新文件缓存 [ 86%]

... 项目内引入文件资源自己封装一个方法来管理引用地址const res = [{ url: setStaticPrefix("card/card_item_bg.png"), type: Laya.Loader.IMAGE }] /** 添加文件hash */ export const setStaticPrefix = (url:string) :string => { if (staticHash[`images/${url}`]) { return staticHash[...

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