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

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

361. laya.map.TileTexSet [ 82%]

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

来源: laya_api 发布时间: 20170929

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

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

363. WaterPrimaryMaterial的使用 [ 82%]

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

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

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

365. BlurFilter的strength属性设置到5以上就没效果了 [ 82%]

...{    var htmlC:HTMLCanvas =_self.drawToCanvas(1334,750,0,0);    var _texture:Texture = new Texture(htmlC);    var sp2:Sprite = new Sprite();    sp2.graphics.drawTexture(_texture,0,0,1334,750);    var blurFilter:BlurFilter = new BlurFilter();    blurFilter.strength = 4;    sp2.fi...

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

366. laya打包iOS,运行奔溃,构建时候选择的是2.3.0 [ 82%]

...8 13:55:32.120276+0800 splitgame[1354:43331] getExtension WEBGL_compressed_texture_s3tc 尚未支持 2020-02-18 13:55:32.120543+0800 splitgame[1354:43331] getExtension WEBKIT_WEBGL_compressed_texture_s3tc 尚未支持 2020-02-18 13:55:32.120883+0800 splitgame[1354:43331] getExtension MOZ_WEBGL_compr...

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

367. 修改了Scene下的WebGL参数导致渲染3D对象出现局部透明 [ 82%]

...AT, false, 0, 0 ); this.gl.bindBuffer(Laya.WebGLContext.ARRAY_BUFFER, this.textureCoordBuffer); // Check the current orientation of the device combined with the // orientation of the VRSeeThroughCamera to determine the correct UV // coordinates to be used. const combinedOrientation = combineOrientat...

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

368. 使用setsubpixel函数对图片进行纹理像素填充,安卓端微信不正常 [ 82%]

...urls.push({ url: ResourcesManager.inst.brush_test_green, clas: Laya.Loader.TEXTURE2D,constructParams:[100, 100, 1, false, true]});   //开始填充     public fillPlane(){         let brush = Laya.loader.getRes(ResourcesManager.inst.brush_test_green) as Laya.Texture2D;         let ...

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

369. DataTexture2D是做什么用的 [ 82%]

DataTexture2D是做什么用的 我用base64的数据用 var _texture2d:DataTexture2D = new DataTexture2D();  _texture2d.onAsynLoaded(null, image); material.diffuseTexture=_texture2d; 没报错,但是贴上去是纯灰色,不是图片 DataTexture2D怎么用? 2018-06-05 添加评论 免费帖...

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

370. [LayaAir3]Spine释放后,纹理不会被释放掉 [ 82%]

...pDat instanceof Laya.SpineTemplet) {        let obj: object = tmpDat["_textures"];        for (let key in obj) {            if (obj.hasOwnProperty(key)) {                let texture = obj[key] as Laya.SpineTexture;                let pngUrl = texture.realTexture.url; le...

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