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

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

451. ???????? 为啥加一个 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

452. 动态加载代码后,总是出现 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

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

454. 区块地图-带动画的地图 [ 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_示例 发布时间: 20240930

455. laya.resource.BaseTexture_API3.0 [ 78%]

...Memory height id maxMipmapLevel mipmap mipmapCount obsolute referenceCount width wrapModeU wrapModeV wrapModeW cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event gpuCompressFormat hasListener isCreateFromURL off offAll o...

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

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

457. 区块地图-带动画的地图 [ 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_示例 发布时间: 20240930

458. UI控件固定位置在ipad分辨率下有问题 [ 78%]

...计高度,高度根据屏幕比率大小而变化*/ static SCALE_FIXED_WIDTH: string; /**应用保持设计高度不变,宽度根据屏幕比缩放,stage的高度等于设计宽度,宽度根据屏幕比率大小而变化*/ static SCALE_FIXED_HEIGHT: string; /**应用保持设计比例不变...

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

459. 论坛的简单跑酷地板间距疑问 [ 78%]

...于增加地板,新地板产生条件是前一个旧地板(this.x + this.width) < this.maxRight,this.x初始都是852,是正数,this.width是旧地板宽度也是正数,所以只有当前一个旧地板的this.x等于负值时等式才会成立,也就是前一个旧地板有部分图形...

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

460. laya.utils.Utils [ 78%]

...itDOMElementInArea(dom:Object, coordinateSpace:Sprite, x:Number, y:Number, width:Number, height:Number):void[static] 使DOM元素使用舞台内的某块区域内。 Utils  getGID():int[static] 获取一个全局唯一ID。Utils  getGlobalPosAndScale(sprite:Sprite):Rectangle[static] 计算传入...

来源: Laya2.0_api 发布时间: 20190513