大约有 2,258 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0071 秒)
Laya_社区(1808) Laya3.0_api(129) laya_api(84) Laya2.0_api(82) Laya2.0_文档(76) Laya_示例(36) Laya3.0_文档(28) Laya2.0_示例(15)
...的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
...QZONE 微信 jincaizi 赞同来自: 这个图集里面的repeat属性,和Texture的repeat属性,是同一个东西吗? 如下面的代码,这行tex1.repeat = true;有什么作用? var tex1:Laya.Texture = Laya.Loader.getRes(texturePath); tex1.repeat = true; 2018...
来源: Laya_社区 发布时间: 20180110
...对象的.on函数无效 var tempnote = new Laya.Sprite(); 使用 tempnote.texture=Loader.getRes(tempjson.pic)后 tempnote.on函数不触发 使用tempnote.loadImage(tempjson.pic); 触发正常,如果我想使用Loader.getRes 来载入缓存的图片应如何处理. 2017-10-24 添加评论 免费...
来源: Laya_社区 发布时间: 20171024
...scale, false); map.perlinNoise(20*scale, 20*scale, 3, 5, false, true); var texture:Texture = Texture.fromBitmapData(map, false, false, scale); 用到了BitmapData的perlinNoise接口,这个接口Laya暂不支持,我就就必须用静态的纹理来替换这个动态生成的纹理。类似于如...
来源: Laya_社区 发布时间: 20151208
...ar material: Laya.BaseMaterial = new WaterMaterial(); Laya.Texture2D.load("res/water1.png", Laya.Handler.create(null, function(tex:Laya.Texture2D) { // material.albedoTexture = tex; material.mainTexture = tex; })); Laya.Texture2D.load("res/FoamTexture.jpg", Laya.Handler.create(null, ...
来源: Laya_社区 发布时间: 20181030
...们看下!你更改的位置是.ani的,还是.ani内部时间轴上的texture呢? Victor • 2017-05-12 15:09 @cuixueying 1.打开两个.ani文件(.ani文件仅有一个texture图层,为序列帧动画,A.ani , B.ani) 2.选中A.ani的texture层的第一帧,右边显示该texture的属...
来源: Laya_社区 发布时间: 20170512
...XTileTexSet offY : int = 0纹理显示时的坐标偏移YTileTexSet texture : Texture子纹理的引用TileTexSet textureArray : Array = null当前要播放动画的纹理序列TileTexSetPublic Methods MethodDefined By addAniSprite(aniName:String, sprite:TileAniSprite):void 加入一...
来源: laya_api 发布时间: 20170929
Failed to execute 'texImage2D怎么处理? 我用 var _texture2d:Texture2D = new Texture2D(); _texture2d.onAsynLoaded(null, image); image是一个base64数据, 然后就报下面的错误 "Failed to execute 'texImage2D' on 'WebGLRenderingContext': No function was found that matched the signatur...
来源: Laya_社区 发布时间: 20180605
...透明度,但是设置无效? 2 在body的render属性下有个sprite有个texture是设置纹理,但是在初始化后无法重置为其他图片纹理? 2018-06-11 添加评论 已悬赏5元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回...
来源: Laya_社区 发布时间: 20180611
...如图三),代码如下: public drawScreenshot(): void { if (!this.tempTexture2D) { this.tempTexture2D = new Laya.Texture2D(1280,720); } if (!this.tempTexture) { this.tempTexture = new Laya.Texture(this.tempTexture2D); } // Laya.timer.once(110, this, function(){ let cans = Laya.Browser.document....
来源: Laya_社区 发布时间: 20191230