大约有 1,004 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0095 秒)
Laya_社区(712) Laya3.0_api(68) Laya2.0_api(59) laya_api(56) Laya2.0_文档(47) Laya_示例(27) Laya3.0_文档(25) Laya2.0_示例(10)
[LayaAir3]资源内存泄漏 1。DrawTrianglesCmd没有对Texture进行添加引用计数,其他类似的Cmd却有。 2。Draw9GridTextureCmd有对Texture进行添加引用,却没有在recover阶段减少引用。 3。SimpleSkinnedMeshRenderer.simpleAnimatorTexture 没有对老的进行减少...
来源: Laya_社区 发布时间: 20241230
...h2DRender会导致ColorFilter影响其他对象 先创建一个Sprite设置texture,并设置ColorFilter。再创建一个Sprite添加Mesh2DRender(这两者层级关系必须是mesh在上层) 后续层级在他们上面的Sprite,不管是使用graphics绘制,还是设置texture都会被第...
来源: Laya_社区 发布时间: 20250605
...leY scene scrollRect seekable seeking skewX skewY source stage staticCache texture timer transform url videoHeight videoTexture videoWidth viewport visible volume width x y zOrder Methods _initialize _processActive _setX _setY addChild addChildAt addChildren addComponent addComponentInstance bubbleE...
来源: Laya3.0_api 发布时间: 20231115
...,顶点带一个颜色数据,在fs里面把这个color的varying乘到texture颜色上面就行。其实就是所谓的顶点色。因为默认所有的sprite都带这个数据,不会影响batch 现在laya实现的这个滤镜,功能确实是更强大,可以实现各种效果,本质是...
来源: Laya_社区 发布时间: 20190827
...ight rotation scaleX scaleY scene scrollRect skewX skewY stage staticCache texture timer toolTip top transform url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRe...
来源: Laya3.0_api 发布时间: 20231115
...el = Math.random().toString(); // console.log(Math.random()); let tex:Laya.Texture = Laya.Loader.getRes(this.bUrl); let x:number = this._testStatus == true ? 0:50;//Math.random()>0.5 ? 50 : 0; this._testStatus = !this._testStatus; // let canvasInfo = this.getCanvasWidthHeight(); let ctx = new Lay...
来源: Laya_社区 发布时间: 20230328
...状态下的描边颜色。 UIGroup tag : * 对象的标签。 Component texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.time...
来源: laya_api 发布时间: 20170929
...图的预加载: {url: "res/heightMap.png", clas:Texture2D, priority:1, params:[true]} 场景中初始化MeshTerrainSprite3D: //通过场景中子父级节点寻找可行走区域网格模型 var meshSprite3D:MeshSprite3...
来源: Laya_社区 发布时间: 20170505
...的png格式的图片,使用的同步的编程方式,及: this.img.texture = "ui/guide01.png"; 或者是 let tex = new Laya.Texture(); tex.load("ui/guide01.png", Laya.Handler.create(this, ()=>{ this.img.texture = tex; })); 但是如果使用ASTC纹理时就会报错,需要使用异...
来源: Laya_社区 发布时间: 20220919
...learRes("http://10.144.1.20:8081/files/ ... 6quot;); var test: Texture = Laya.loader.getRes("http://10.144.1.20:8081/files/ ... 6quot;); Laya.loader.load("http://10.144.1.20:8081/files/ ... ot%3B, Handler.create(this, function (): void { var t: Texture = Lay...
来源: Laya_社区 发布时间: 20170831