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

大约有 328 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0046 秒)

241. 关于大量图片加载绘制后的内存暴增的疑问 [ 69%]

...加载把302个图片资源加入到内存中,然后通过getRes 和 drawTexture 添加SPRITE对象到屏幕中。 预加载后的初始内存29M左右 之后开始逐个添加SPRITE,在添加第1个到第80个头像的时候,内存显示稳定在29M 但是当添加第81个SPRITE头像的...

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

242. Spine动画资源加载时不能同时使用"版本管理"和"URL.basePath" [ 69%]

...f("/"))+"/"); this.parseData(null,tSkBuffer); } __proto.parseData=function(texture,skeletonData,playbackRate){ (playbackRate===void 0)&& (playbackRate=30); if(!this._path&&this.url){ //MODIFIED:使用formatPath进行路径过滤 this._path=this.formatPath(this.url.slice(0,this.url.la...

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

243. laya.ani.bone.BoneSlot_API3.0 [ 69%]

... BoneSlot Index Properties attachmentName currDisplayData currSlotData currTexture displayIndex name parent srcDisplayIndex templet type Methods copy draw drawBonePoint getMatrix replaceDisplayByIndex replaceDisplayByName replaceSkin setParentMatrix showDisplayByIndex showDisplayByName showSlotData ...

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

244. 【简单跑酷--JS版】---Lv.6 终篇 [ 69%]

...ype; _proto.init = function(type){ this.width = 180; this.height = 21; var texture1 = Laya.loader.getRes("res/hp_bg.png"); var texture2; switch (type) { case Hp.HP_TYPE_ENERGY: texture2 = Laya.loader.getRes("res/en_bar.png"); break; case Hp.HP_TYPE_SPEED: texture2 = Laya.loader.getRes("res/hp_bar.pn...

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

245. IDE创建3D示例项目(JavaScript-3D基础(JS)-快速开始一个LayaAir3D项目) [ 68%]

... 45, 0), false, false); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex) { material.albedoTexture = tex; })); box.meshRenderer.material = material; ``` #####

来源: Laya2.0_文档 发布时间: 20210715

246. IDE创建3D示例项目(ActionScript-3D基础(AS3)-快速开始一个LayaAir3D项目) [ 68%]

...false, false); var material:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(null, function(tex:Texture2D):void { material.albedoTexture = tex; })); box.meshRenderer.material = material; ``` #####

来源: Laya2.0_文档 发布时间: 20210714

247. IDE创建3D示例项目(TypeScript-3D基础(TS)-快速开始一个LayaAir3D项目) [ 67%]

...ar material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex:Laya.Texture2D) { material.albedoTexture = tex; })); box.meshRenderer.material = material; ``` #####

来源: Laya2.0_文档 发布时间: 20210714

248. laya.d3.core.MeshTerrainSprite3D_API3.0 [ 67%]

...BEBOXMAX REFLECTIONCUBE_PROBEBOXMIN REFLECTIONCUBE_PROBEPOSITION REFLECTIONTEXTURE SAHDERDEFINE_LIGHTMAP SHADERDEFINE_LIGHTMAP_DIRECTIONAL SHADERDEFINE_RECEIVE_SHADOW Accessors active activeInHierarchy components depth destroyed displayedInStage hideFlags id is3D layer meshFilter meshRenderer minX m...

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

249. Laya中Button等组件lose skin的问题 [ 67%]

...     var clips=WeakObject.I.get(key);         if (!Utils.isOkTextureList(clips)){             clips=null;         }         if (clips)this._sources=clips;         else {             this._sources=;             if (this._stateNu...

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

250. 如何获取webgl模式下屏幕上的像素值 [ 66%]

...邀请: 与内容相关的链接 提交 1 个回复 Volumex 赞同来自: Texture.getPixels方法内 var tUint8Array=tRenderTarget.getData(0,0,width,height); tUint8Array空, 走进去应该是因 var canRead=(gl.checkFramebufferStatus(/*laya.webgl.WebGLContext.FRAMEBUFFER*/0x8D40)===/*laya.w...

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