• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 2,258 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0071 秒)

331. 关于ASTC使用问题和建议 [ 83%]

...的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

332. 关于打包图集时的图片默认属性与repeat的区别 [ 83%]

...QZONE 微信 jincaizi 赞同来自: 这个图集里面的repeat属性,和Texture的repeat属性,是同一个东西吗?   如下面的代码,这行tex1.repeat = true;有什么作用?   var tex1:Laya.Texture = Laya.Loader.getRes(texturePath); tex1.repeat = true;                2018...

来源: Laya_社区 发布时间: 20180110

333. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 83%]

...对象的.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

334. Starling项目需要注意哪些问题? [ 83%]

...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

335. WaterPrimaryMaterial的使用 [ 83%]

...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

336. LayaAir IDE 多开ani,拖动其中一个ani图集的x,y属性,其他的ani的位置均受影响 [ 83%]

...们看下!你更改的位置是.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

337. laya.map.TileTexSet [ 83%]

...XTileTexSet  offY : int = 0纹理显示时的坐标偏移YTileTexSet  texture : Texture子纹理的引用TileTexSet  textureArray : Array = null当前要播放动画的纹理序列TileTexSetPublic Methods  MethodDefined By  addAniSprite(aniName:String, sprite:TileAniSprite):void 加入一...

来源: laya_api 发布时间: 20170929

338. Failed to execute 'texImage2D怎么处理? [ 83%]

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

339. 请问物理引擎为什么设置body的透明度无效 [ 83%]

...透明度,但是设置无效? 2 在body的render属性下有个sprite有个texture是设置纹理,但是在初始化后无法重置为其他图片纹理? 2018-06-11 添加评论 已悬赏5元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回...

来源: Laya_社区 发布时间: 20180611

340. 3D+2D场景截屏,在不同浏览器显示效果不一致 [ 83%]

...如图三),代码如下: 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