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

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

521. 区块地图-PerspectiveWall [ 78%]

...eMap("res/tiledMap/perspective_walls.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); } } new TiledMap_PerspectiveWall();module laya { import Stage = Laya.Stage; import TiledMap = Laya.TiledMap; import Rectangle = Laya.Rectangle; import Browser = Laya.Browser; import WebGL = L...

来源: Laya2.0_示例 发布时间: 20260303

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

... LayaUISample.scoreview.graphics.drawTexture(rankTexture,5,78,rankTexture.width,rankTexture.height);     }); var rankTexture=new Texture(Browser.window.sharedCanvas); 这里报错 VM13215:1 gameThirdScriptError bitmap._addReference is not a function TypeError: bitmap._addReference is not a func...

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

523. htmlCanvas 像素级操作 [ 78%]

...); //获取临时sprite的htmlCanvas var htmlCanvas = img.drawToCanvas(tex.width,tex.height,0,0); //获取临时sprite的 原生Canvas var c = htmlCanvas.getCanvas(); var ctx = c.getContext("2d"); //获取canvas的imgData var imgData = ctx.getImageData(0,0,ctx.canvas.width,ctx.canvas.height); //将...

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

524. 动态加载代码后,总是出现 ProgressBar is not a constructor [ 78%]

...ete() { pBar = new ProgressBar(AssetsDir+"./assets/progressBar.png"); pBar.width = Laya.stage.width/2;//400; pBar.x = (Laya.stage.width - pBar.width) / 2; pBar.y = Laya.stage.height / 2; 。。。 }这是 progressBar 资源加载完毕之后,构造progressBar的脚本。 总是在这里出现错...

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

525. ???????? 为啥加一个 Text,drawcall 暴增? [ 78%]

...ngth = String(price).length; var w = length * 16 + 15 + 40; fish.scoreItem.width = w; fish.scoreItem.x = fish.getBox().x - fish.scoreItem.width/2; fish.scoreItem.y = fish.getBox().y - fish.scoreItem.height; this.scoreBox.addChild(fish.scoreItem); fish.scoreGold = new Laya.Image(); fish.scoreGold.ski...

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

526. WebGL模式下,使用fillTexture填充Sprite,在Sprite移动时,会有间隔线显示并闪烁 [ 78%]

...烁  this.mapBg = new Laya.Sprite(); this.mapBg.name = "map"; this.mapBg.width = GameMain._width; this.mapBg.height = GameMain._height; this.mapBg.x = 0; this.mapBg.y = 0; this.mapBg.graphics.fillTexture(texture, 0, 0, GameMain._width, GameMain._height); this.map.addChild(this.mapBg);    问题...

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

527. 区块地图-带动画的地图 [ 78%]

...s/tiledMap/orthogonal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); } })();module laya { import Stage = Laya.Stage; import TiledMap = Laya.TiledMap; import Rectangle = Laya.Rectangle; import WebGL = Laya.WebGL; export class TiledMap_AnimationTile { private ti...

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

528. LayaAir 2.0 微信排行榜 离屏画布不能直接附加到组件纹理上 [ 78%]

...ysChange = true; rankList.graphics.drawTexture(texture, 0, 0, sharedCanvas.width, sharedCanvas.height); 2018-10-02 0 10 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 淡淡的疯 相关问题 微信关系链:Laya...

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

529. 区块地图-带动画的地图 [ 78%]

...edMap/orthogonal-test-movelayer.json", new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); } } new TiledMap_AnimationTile();module laya { import Stage = Laya.Stage; import TiledMap = Laya.TiledMap; import Rectangle = Laya.Rectangle; import WebGL = Laya.WebGL; export class TiledMap_...

来源: Laya2.0_示例 发布时间: 20260303

530. laya.display.cmd.DrawTrianglesCmd_API3.0 [ 78%]

...lesCmd.ts:13 Methods getBoundPoints getBoundPoints(sp?: { height?: number; width: number }): number[] Defined in laya/display/cmd/DrawTrianglesCmd.ts:96 Parameters Optional sp: { height?: number; width: number } Optional height?: number width: number Returns number[] recover recover(): void Defined ...

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