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

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

331. 2.3微信截图分享问题 [ 83%]

2.3微信截图分享问题 let textur: Laya.Texture = this.cut.drawToTexture(500, 500, 0, 0);   this.show.texture = textur此代码可以获得一个组件的纹理。并且可以正常展现到另一个组件上去。   现在有个问题。如果用微信分享怎么搞?微信那边需要...

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

332. 二进制文件打包后,读取不到zip包内的文件 [ 83%]

...     console.log('res,', (typeof res))             Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) {                 material.albedoTexture = tex;                 let item = 'res/layabox.png'...

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

333. 关于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

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

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

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

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

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

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

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

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

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