大约有 547 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0049 秒)
Laya_社区(341) Laya3.0_api(66) Laya2.0_api(60) laya_api(55) Laya3.0_文档(11) Laya2.0_文档(8) Laya2.0_示例(3) Laya_示例(3)
...空白了。。。 cuixueying • 2017-05-10 10:34 1、因为image引用的texture是同一个,所以你要确保你的texture引擎没有其他显示对象引用后,再去掉destroy,如果其他显示对象对其依然有引用,你可以先将image从现实列表移除,removeChild并让im...
来源: Laya_社区 发布时间: 20170509
...; this.aimSp = null; this.drawImage = null; this.drawSp = null; this.monkeyTexture = null; // 不支持WebGL时自动切换至Canvas Config.preserveDrawingBuffer =true; Laya.init(Browser.clientWidth, Browser.clientHeight); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTE...
来源: Laya2.0_示例 发布时间: 20251130
panel内容较多时 真机上报错larger than MAX_TEXTURE_SIZE (4096) 微信小游戏使用panel,在等比缩放下,其内容的设计height约2000左右(我是用box包着的),在iphone的plus系列机型下,在真机上会报[wxgl]Warning: Image [Dynamic] larger than MAX_TEXTURE_SIZ...
来源: Laya_社区 发布时间: 20180808
webgl 模式下 用graphics.drawTexture 平铺图片 图片不显示是什么原因 this.texture1 = Laya.loader.getRes('res/images/bg1.png'); this.texture2 = Laya.loader.getRes('res/images/bg2.png'); var repeatX = 8 ; var repeatCount = Math.ceil(stageW / repeatX); for(let i = 0; i < repeatCount ...
来源: Laya_社区 发布时间: 20180129
...ge的skin值来动态更换图片。 sprite可以通过sprite.graphcis.drawTexture来实现动态更换图片,当更换新的图片Texture的时候,clear掉之前的显示,将最新的texture赋值就可以了。 2018-02-01 0 0 分享 微博 QZONE 微信 daibao520 赞同来自: 能不能给点...
来源: Laya_社区 发布时间: 20180201
...oad(name,Laya.Handler.create(this,this.drawImg)); } drawImg():void { var texture:Laya.Texture = Laya.loader.getRes(this.name); this.texture = texture; } clearImage(): void{ if (this.name != "") { this.isShow = false; Laya.Loader.clearTextureRes(this.name); Laya.Loader.clearRes(this.name); this.n...
来源: Laya_社区 发布时间: 20190315
...r.create(this, this.createView)); 在createView回调里面调用 let tex: Texture = Laya.Loader.getRes("image/shake_01.png"); 想拿图集中的某一张图片。发现拿不到这张图片。 但是我换个默认的图集Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, this.createVie...
来源: Laya_社区 发布时间: 20180326
...scaleY scene scrollRect sizeGrid skewX skewY skin source stage staticCache texture timer toolTip top transform url useSourceSize viewport visible width x y zOrder Methods _initialize _processActive _setHeight _setSkin _setWidth addChild addChildAt addChildren addComponent addComponentInstance bubble...
来源: Laya3.0_api 发布时间: 20231115
在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 我使用的版本是1.7.12 测试代码如下:module Main { import Sprite = Laya.Sprite import Texture = Laya.Texture import Handler = Laya.Handler export class MaskDemo { private Res: string; private img: Laya....
来源: Laya_社区 发布时间: 20171211
...CHY IMAGE JSON MATERIAL MESH SOUND SPINE TERRAINHEIGHTDATA TERRAINRES TEXT TEXTURE2D TEXTURECUBE TTF VIDEO XML downloader extMap groupMap loadedMap preLoadedMap typeMap Accessors loading Methods cacheRes cancelLoadByUrl cancelLoadByUrls clearRes clearTextureRes clearUnLoaded event fetch getRes hasLi...
来源: Laya3.0_api 发布时间: 20231115