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

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

411. 物理引擎中更换刚体贴图的方法 [ 80%]

...: 1, //弹力 restitution:0.4, container:this.ballBox, render: { sprite: { texture: "comp/basketball.png", xOffset: 34, yOffset: 34, } } }); 我想通过代码随时更改这个刚体上的texture贴图,this.ball.render.sprite.texture="comp/2.png"这个方法只能在游戏刚开始时执行一遍...

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

412. Uint8Array的像素数据在ios中无法改变图片纹理,安卓正常 [ 80%]

...另一张 代码如下: private _testSetPixels() { let data = this.test1.texture.getPixels(0, 0, this.test1.width, this.test1.height); let width = this.test1.width; let height = data.length / 4 / width; let tex2d = new Laya.Texture2D(width, height, 1); tex2d.setPixels(data); this.imgAr.texture.set...

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

413. worker.js 使用问题 [ 80%]

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

414. laya.ani.bone.BoneSlot_API3.0 [ 80%]

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

415. laya.spine.SpineTexture_API3.0 [ 80%]

...tected All Inherited Externals Only exported Menu Globals "laya/spine/SpineTexture" SpineTexture Class SpineTexture Hierarchy SpineTexture Index Constructors constructor Properties realTexture Methods convertWrapMode getImage setFilters setWraps Constructors constructor new SpineTexture(tex: Texture...

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

416. 官网二进制图片做法苹果系统失败 [ 80%]

...e 这里要用HTMLImage.create; htmlImg.onload = function():void { var t:Texture =new Texture(htmlImg); } 官网二进制图片的做法,苹果系统不会执行onload,会onerror,安卓就正常有人遇到过吗? 2017-06-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

417. 关于微信小游戏关系链的问题 [ 80%]

...s,function(){ console.log(Browser.window.sharedCanvas)       var rankTexture=new Texture(Browser.window.sharedCanvas);       rankTexture.bitmap.alwaysChange=true; console.log(rankTexture)       LayaUISample.scoreview.graphics.drawTexture(rankTexture,5,78,rankTexture.width,rankTextu...

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

418. 闪屏,报错信息如下 [ 80%]

...,报错信息如下 02-05 16:53:06.997 24700-24824/? E/chromium: [ERROR:texture_manager.cc(2971)] [.Offscreen-For-WebGL-0x7c8dec00]GL ERROR :0x0505 : glTexImage2D: <- error from previous GL command 02-05 16:53:07.013 24700-24700/? I/chromium: [INFO:CONSOLE(0)] "[.Offscreen-For-WebGL-0x7c8dec00]...

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

419. 如何使用rendertexture获取相机渲染的动态图片? [ 80%]

如何使用rendertexture获取相机渲染的动态图片? 具体的需求是camera获取到的rendertexture属性,然后想赋值给一个图片,可以动态的反应相机渲染到的图片的动态改变。最好能给出教程或者代码实现,因为Laya的资料实在是太少了... 20...

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

420. 清理资源相关问题! [ 79%]

...然后设置enableMerageInAtlas = false即可。 代码如下所示:var texture:Texture = Laya.loader.getRes(url); texture.bitmap.enableMerageInAtlas = false;     2017-08-21 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...

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