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

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

711. layacmd mac 系统安装不上,急 [ 72%]

...es} yaotekejirigala:~ root# npm install layacmd -g/usr/local/bin/layacmd -> /usr/local/lib/node_modules/layacmd/layacmd.js > electron@1.8.6 postinstall /usr/local/lib/node_modules/layacmd/node_modules/electron > node install.js /usr/local/lib/node_modules/layacmd/node_modules/electron/insta...

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

712. 如何设置一个定时器 API看不懂 [ 72%]

...复 he853066732 赞同来自: typeScript:     box.on(Laya.Event,this,()=> { Laya.timer.once(6000,this,()=> { //提示信息 }) }) 2018-04-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 cyk123 相关问题 两个对象new了一...

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

713. [LayaAirIDE3]Laya.loader.on(Event.ERROR, this, this.onError) 无法侦听到加载资源失败 [ 72%]

...     Laya.loader.load(urls, Laya.Loader.IMAGE, this.onLoading).then(() =>         {             this.onAssetLoaded();         });          // 侦听加载失败         Laya.loader.on(Event.ERROR, this, this.onError);     }      private onAssetLoaded(): void     { ...

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

714. mac平台1.7.20.2beta版本下compileTargets设置不生效 [ 71%]

...txt); } } }  2. 修改.as3proj文件相应标签如下 <compileTargets> <compile path="src\HelloWorld.as" /> </compileTargets> 3. 运行后依然编译执行默认生成的LayaSamples.as 2018-09-14 添加评论 已悬赏1元 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

715. laya.loaders.AnimationClip2DLoader_API3.0 [ 71%]

...ethods load Methods load load(task: ILoadTask): Promise<AnimationClip2D> Implementation of IResourceLoader.load Defined in laya/loaders/AnimationClip2DLoader.ts:5 Parameters task: ILoadTask Returns Promise<AnimationClip2D> Globals "laya/loaders/AnimationClip2DLoader" AnimationClip2DLoade...

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

716. laya.particle.ParticleTemplate2DLoader_API3.0 [ 71%]

...ods load Methods load load(task: ILoadTask): Promise<ParticleTemplate2D> Implementation of IResourceLoader.load Defined in laya/particle/ParticleTemplate2DLoader.ts:7 Parameters task: ILoadTask Returns Promise<ParticleTemplate2D> Globals "laya/particle/ParticleTemplate2DLoader" ParticleT...

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

717. LayaAir IDE 1.4.0新增功能 附加(扩展)脚本的使用 [ 71%]

...项目(以AS语言为例,JS/TS同理)    b、项目面板右键->新建->页面/场景(ExpandPage)  c、在舞台拖拽一个按钮(可以设置成自己喜欢的样式),并在项目面板右键->新建->脚本(附加脚本Btn)    这时候会在项目面板生成一...

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

718. HTMLIframeElement报错 [ 71%]

... Utils.parseXMLFromString=function(value){ var rst; value=value.replace(/>\s+</g,'><'); rst=(new DOMParser()).parseFromString(value,'text/xml'); if (rst.firstChild.textContent.indexOf("This page contains the following errors")>-1){ throw new Error(rst.firstChild.firstChild.textContent...

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

719. 游戏引导 原来使用 blendMode = "destination-out"; 现在怎么用? [ 71%]

...3 23:19 laya.core.js line 13106 if (tCacheType === 'bitmap' && (w > 2048 || h > 2048)) { console.warn("cache bitmap size larger than 2048,cache ignored"); _cacheStyle.releaseContext(); _next._fun.call(_next, sprite, context, x, y); return; } 就是这个 w > 2048 导致 ...

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

720. as3 ,LayaAir下调试matter.js物理引擎出错。 [ 71%]

...版本使用的时候,index.html下文件的加载顺序是 matter.js -> laya.js(引擎文件) -> matter-RenderLaya.js(渲染器) -> 游戏文件。你要是用as语言,编译时的参数要加上outlaya=true,这样会把引擎和游戏逻辑编译成两个文件,不加会合在...

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