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

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

491. 如何降低graphics绘制产生的drawcall [ 72%]

如何降低graphics绘制产生的drawcall     for (var i = 0; i < 100; i++) {         for (var j = 0; j < 100; j++) {             img.graphics.drawRect(i, j, 2, 2, "#CD5C5C");         }     } 这样绘制会有10000个drawcall 官方有能降低drawcall...

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

492. Animation 的createFrames 使用已经加载的图集缓存动画失败 [ 72%]

...的地址是res/package.json,那么每张小图的地址为res/package/<小图的文件名>; 如果你的json文件中有meta.prefix,那么地址则为URL.basePath + prefix + <小图的文件名>。 这个文档里讲的不是很清楚,建议补充下。 (3)我是一开始就...

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

493. HTMLDivElement文本字体描边怎么弄呢?用滤镜吗? [ 72%]

...本支持htmldivelement的描边了。用法,比如: div.innerHTML='<span style="stroke:2;strokeColor:#ffff00">hello</span>'; 2017-01-26 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 hwemail 相关问题 文本如何自...

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

494. 安装layaair2-cmd一直失败 [ 72%]

...ator>npm i layaair2-cmd -g npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage  due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. C:\Users\Administrator\AppData\Roaming\npm\layaair2-cmd -> C:\...

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

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

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

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

496. laya.loaders.AnimationClip2DLoader_API3.0 [ 72%]

...ourceLoader Index Methods 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" A...

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

497. laya.particle.ParticleTemplate2DLoader_API3.0 [ 72%]

...ourceLoader Index Methods 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/ParticleTempl...

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

498. 加载ttf字体该怎么做 [ 72%]

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

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

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

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

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

500. Node.prototype._activeHierarchy存在的bug或者说是onEnable和onAwake的坑 [ 72%]

...onents){             for (var i=0,n=this._components.length;i < n;i++){                 var comp=this._components[i];                 comp._setActive(true);                 (comp._isScript())&& (activeChangeScripts.push(comp)); ...

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