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

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

711. 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

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

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

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

713. 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

714. 游戏引导 原来使用 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

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

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

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

716. 加载ttf字体该怎么做 [ 71%]

...加载ttf字体成功,在index.html中我是这么写的     <style>         @font-face {             font-family: yy;             src: url("yy.ttf")         }     </style> 但是打包ipa在iphone上运行显示“不支持style”“不支持div”等等 请...

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

717. 求图片有叠加部分时点击图片的处理方式 [ 71%]

...部分时的处理方式 截图为Laya官网案例的 <<梦幻家园>>   如图所示 树的层级在风车的后面点击红色箭头位置效果是点击到风车 点击蓝色箭头位置效果是点击到树    不点击到风车   求一个思路 改怎么实现这种点击操作...

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

718. 报无法找到资源,未升级ide之前不报错 [ 71%]

...ame: string, len: number = 8): void {     let aniFrames: Array<string> = [];     for (let i: number = 0; i < len; i++) {         aniFrames.push("resources/UI/role/atlasAni2/139x/" + name + i + ".png");     }     Laya.Animation.createFrames(aniFrames, name); }     附件 : --> ...

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

719. laya.loaders.TextureLoader_API3.0 [ 71%]

...hods load wrapTex2D Methods load load(task: ILoadTask): Promise<Texture> Implementation of IResourceLoader.load Defined in laya/loaders/TextureLoader.ts:241 Parameters task: ILoadTask Returns Promise<Texture> wrapTex2D wrapTex2D(task: ILoadTask, tex2D: Texture2D): Texture Defined in laya...

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

720. native 问题实在太多了 使用自定义的动态字经常出现崩溃 [ 71%]

...EQ==/lib/arm64/liblayaair.so (laya::imp_JS2CFunc<v8::Local<v8::Value> (laya::JSTextMemoryCanvas::*)(char const*, int, int, int)>::call(v8::FunctionCallbackInfo<v8::Value> const&)+476) [arm64-v8a] 4 #03 pc 0000000000005590 /data/app/com.gemclash.towerdefense.gp-nL3Za3jIt5tpqzSu...

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