大约有 2,110 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0080 秒)
如何降低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
...的地址是res/package.json,那么每张小图的地址为res/package/<小图的文件名>; 如果你的json文件中有meta.prefix,那么地址则为URL.basePath + prefix + <小图的文件名>。 这个文档里讲的不是很清楚,建议补充下。 (3)我是一开始就...
来源: Laya_社区 发布时间: 20160610
...本支持htmldivelement的描边了。用法,比如: div.innerHTML='<span style="stroke:2;strokeColor:#ffff00">hello</span>'; 2017-01-26 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 hwemail 相关问题 文本如何自...
来源: Laya_社区 发布时间: 20170126
...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
...ya.stage.addChild(txt); } } } 2. 修改.as3proj文件相应标签如下 <compileTargets> <compile path="src\HelloWorld.as" /> </compileTargets> 3. 运行后依然编译执行默认生成的LayaSamples.as 2018-09-14 添加评论 已悬赏1元 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20180914
...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
...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
...个帖子加载ttf字体成功,在index.html中我是这么写的 <style> @font-face { font-family: yy; src: url("yy.ttf") } </style> 但是打包ipa在iphone上运行显示“不支持style”“不支持div”等...
来源: Laya_社区 发布时间: 20170523
...张图片有叠加部分时的处理方式 截图为Laya官网案例的 <<梦幻家园>> 如图所示 树的层级在风车的后面点击红色箭头位置效果是点击到风车 点击蓝色箭头位置效果是点击到树 不点击到风车 求一个思路 改怎么实现...
来源: Laya_社区 发布时间: 20170411
...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