大约有 1,004 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0049 秒)
Laya_社区(712) Laya3.0_api(68) Laya2.0_api(59) laya_api(56) Laya2.0_文档(47) Laya_示例(27) Laya3.0_文档(25) Laya2.0_示例(10)
...释放 [i][b]url = URL.formatURL(directory + name); [/b][/i] cacheRes(url, Texture.create(tPic, obj.frame.x, obj.frame.y, obj.frame.w, obj.frame.h, obj.spriteSourceSize.x, obj.spriteSourceSize.y, obj.sourceSize.w, obj.sourceSize.h)); loadedMap[url].url = url; map.push(url); } } delete _data.pics; ...
来源: Laya_社区 发布时间: 20180415
...,并且每次创建内存涨幅都比较大。 测试过程中碰到drawTexture报错 报错重现: 1.点击创建 2.点击清理 3.点击移除 先把texture释放掉,再myView.destroy()就报错 附件 : --> 泄漏demo.zip 2018-04-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20180408
...并在 MeshRenderer 组件中指定新创建的材质,来设置 albedo Texture 纹理 ,如动图2-7所示, (动图2-7) 三、代码创建与使用 通过代码来创建和使用3D基础对象,也是我们了解和熟悉LayaAir引擎的过程 3.1 代码创建 3.1.1 PrimitiveMesh 类用于...
来源: Laya3.0_文档 发布时间: 20251010
...er.create(this, this.onLoading, null, false)); }, onAssetloaded : function(texture){ this.tl = new Laya.Animation(); //加载动画文件 this.tl.loadAnimation("imgdebris/naruto2.ani"); //添加到舞台 var apesCtn = new Laya.Sprite(); Laya.stage.addChild(apesCtn); var _this = this; this.tl.on(this...
来源: Laya_社区 发布时间: 20190117
...(在reources文件夹)拖入第一列中,将<设置>中的<Texture Region Size>x和y设置为32,单击图块,单击右键,选中<创建图块>,印象中其它属性并没有改变。随后参考教程瓦片地图层 · LayaAir3.3 · 引擎文档 · LAYABOX,在<...
来源: Laya_社区 发布时间: 20250118
... private lightOccluder: Laya.Sprite = new Laya.Sprite(); private backgroundTexture: string = "resources/bg2.png"; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { Laya.loader.load(this.backgroundTexture).then(() => { this.createLightOccluder(); this.createSpotLigh...
来源: Laya3.0_文档 发布时间: 20251010
...s constructor Component cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' TypeError: Laya.MovieClip is not a constructo...
来源: Laya_社区 发布时间: 20180125
...如图: 下方中间的是Text文本 左上方的是用drawToCanvas生成Texture绘制在sprite上的 fontSize为8, 显示左上角的文字明显要比中间的大, 左上角的画布特意加大了, 如果画布按文本原本大小绘制的话会显示不全. 附件 : --> 2018-01-18 添加...
来源: Laya_社区 发布时间: 20180118
...new Laya.loader.getRes(url); var ape = new Laya.Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200,0); } ``` 第三种我们直接创建一个纹理来显示: ```javascript function completeHandler(data){ //加载完成返回的data是arraybuffer //......这里处理...
来源: Laya2.0_文档 发布时间: 20210715
... 貌似drawcall 变得更多了。。你不如关闭所有的cacheas 采用texture atals,可能还更好点
来源: Laya_社区 发布时间: 20180521