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

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

461. LayaAir编译器错之for_in [ 77%]

...Loader.loadedMap)             {                 var t:Texture = null;                 if(Loader.loadedMap[i] is Texture)                 {                     t=Loader.loadedMap[i];                     t.destroy();      ...

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

462. 3D开启多线程报错 [ 77%]

...text': No function was found that matched the signature provided.     at Texture2D.__proto._createWebGlTexture (laya.d3.js:37225)     at Texture2D.__proto.recreateResource (laya.d3.js:37271)     at Texture2D.__proto.onAsynLoaded (laya.d3.js:37329)     at ResInfo.onLoaded (laya.core.js:13189)...

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

463. matter.js的文档查看 [ 77%]

...                  {                         texture: texture,                         xOffset: 20.5,                         yOffset: 28                     }                 } 这些参数在matter.js的...

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

464. 微信小游戏开放数据域透明区域绘制的问题 [ 76%]

...边将sharedCanvas的内容绘制到主屏幕,伪代码如下: var myTexture = new Laya.Texture(sharedCanvas) myTexture.bitmap.alwaysChange = true; this.graphics.drawTexture(myTexture, x, y, width, height)   目前遇到的问题: 主域里面的texture获取在获取sharedCanvas里的图案...

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

465. graphics 问题 [ 76%]

...自: (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.s...

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

466. 性能测试-骨骼 [ 76%]

...aya.Event; var GlowFilter = Laya.GlowFilter; var Loader = Laya.Loader; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var mArmature; var fileName = "Dragon"; var mTexturePath; var mAniPath; var rowCount = 10; var colC...

来源: Laya_示例 发布时间: 20251209

467. [LayaAir3]laya3.0.9,使用Animation播放序列帧动画,引用计数问题 [ 76%]

...animation,loadAtlas后,AtlasResource的_referenceCount是0,对应的Texture2D的_referenceCount是AtlasResource中使用的次数,当animation执行destyoy后,AtlasResource和Texture2D的_referenceCount没有变化,再次创建后AtlasResource的_referenceCount依旧是0,对应的Textu...

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

468. CPU优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 76%]

...ader.load("res/apes/monkey2.png",Laya.Handler.create(this,function() { var texture=Laya.loader.getRes("res/apes/monkey2.png"); var sp=new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); sp.size(texture.width,texture.height); Laya.stage.addChild(sp); })); ``` 使用Graphics.drawTexture并不会...

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

469. laya.ani.bone.Skeleton [ 76%]

...但是可以通过调用 reCache 方法手动刷新。 注意: 1.Sprite texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.time...

来源: laya_api 发布时间: 20170929

470. 图片通过drawTexture平铺出现缝隙 [ 76%]

图片通过drawTexture平铺出现缝隙 this.darwSprite = new Sprite();         this.addChild(this.darwSprite);         var t: Texture = Laya.loader.getRes("load/0.png");         this.darwSprite.graphics.drawTexture(t,0,0);         this.darwSprite.graphics.drawTexture(t,176,0);  ...

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