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

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

51. 如何更换ani文件的图片帧 [ 71%]

...获取Animation对象的frames属性,通过修改_one[0],赋值新的Texture对象即可实现,如下图:   最近出LayaRuntime包,发现在这个Runtime下,Animatin每一帧的数据是在_cmds中,并且cmds中不是Texture对象,而是HtmlImageElement对象。 现在的问题就...

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

52. 安卓app加载场景错误 [ 70%]

...//192.167.0.100/h5/layawe ... 6756: TypeError: Cannot read property 'createTexture' of null var glTexture=this._source=gl.createTexture(); ^ TypeError: Cannot read property 'createTexture' of null at Texture2D.__proto._createWebGlTexture (http://192.167.0.100/h5/layawe ... 756:32) at Texture2D.__pro...

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

53. [0]Laya3.0.3 的VideoNode不支持在微信浏览器中播放 [ 70%]

...浏览器无任何显示。 let mat = new Laya.UnlitMaterial(); mat.albedoTexture = videoNode.videoTexture; this.owner.xxx.getChildByName('Scene3D').getChildByName('Plane').getComponent(Laya.MeshRenderer).sharedMaterial = mat; // 上面代码在3D场景中播放则无任何问题,包括微信浏...

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

54. 图片切换后显示两个状态 [ 70%]

...因的吗?~~~~~~~~~~~~~ matter中layasprite怎么改变图片大小? Texture图片能否进行翻转? unity中的模型导出后在laya中显示不正常 为什么有的图片打包,有的图片不打包? 如图 问题状态 最新活动: 2017-06-18 11:09 浏览: 934 关注: 2 人 Loongman...

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

55. RenderTexture 无法再image上显示 [ 69%]

RenderTexture 无法再image上显示     this.modelCamera.clearFlag = Laya.CameraClearFlags.SolidColor;           this.modelCamera.clearColor = new Laya.Vector4(0, 0, 0, 0);           this.modelCamera.renderTarget = new Laya.RenderTexture(512, 512, Laya.RenderTextureFormat.R8G8B8A8, La...

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

56. worker.js 使用问题 [ 69%]

...text': No function was found that matched the signature provided.     at Texture2D.__proto._createWebGlTexture (laya.d3.js:33519)     at Texture2D.__proto.recreateResource (laya.d3.js:33562)     at Texture2D.__proto.activeResource (laya.core.js:13234)     at Texture2D.<anonymous> (laya...

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

57. drawToCanvas的问题 [ 68%]

...); sp.graphics.drawPie(128,128,128,0,angle,"0xff0000"); var tex = sp.drawToTexture(256,256,0,0); //var html:Laya.HTMLCanvas = sp.drawToCanvas(256,256,0,0); //img.loadImageSource(html.source,true); //html.clear(); //html.destroy(); mat.albedoTexture.destroy(); // 先删除旧的 mat.albedoTexture = t...

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

58. laya2 物理引擎好多问题 [ 68%]

...prite; var ni:Laya.Animation=new Laya.Animation(); self.addChild(ni); self.texture=null; ni.source='baozha/baozha_0.png,baozha/baozha_1.png,baozha/baozha_2.png,baozha/baozha_3.png,baozha/baozha_4.png,baozha/baozha_5.png,baozha/baozha_6.png,baozha/baozha_7.png'; ni.interval=100; ni.autoPlay=false; ni...

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

59. laya.resource.HTMLCanvas_API3.0 [ 68%]

...y _setCreateURL _setGPUMemory clear destroy event getContext getMemSize getTexture hasListener isCreateFromURL off offAll offAllCaller on once release size toBase64 toBase64Async destroyUnusedResources Constructors constructor new HTMLCanvas(createCanvas?: boolean): HTMLCanvas Overrides Resource.__c...

来源: Laya3.0_api 发布时间: 20231115

60. laya.d3.resource.DataTexture2D [ 67%]

...cumentationAll Packages | All Classes | Index | Frames No Frames DataTexture2DProperties | Methods Packagelaya.d3.resourceClasspublic class DataTexture2DInheritanceDataTexture2D BaseTexture laya.resource.ResourcePublic Properties Hide Inherited Public Properties Show Inherited Public Propert...

来源: laya_api 发布时间: 20170929