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

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

171. 引擎 TiledMap 居然不支持图块翻转 [ 85%]

...                if (this.x < 0 || this.x > this._map.viewPortWidth || this.y < 0 || this.y > this._map.viewPortHeight) {                     this.hide();                 }                 else {                     this.show();           ...

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

172. laya.d3.resource.MulSampleRenderTexture_API3.0 [ 85%]

...ipmapLevel mipmap mipmapCount multiSamples obsolute referenceCount samples width wrapModeU wrapModeV wrapModeW bindCanvasRender cpuMemory currentActive gpuMemory Methods _addReference _clearReference _createRenderTarget _end _getSource _removeReference _setCPUMemory _setCreateURL _setGPUMemory _star...

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

173. normalizedViewport修改问题 [ 85%]

...ce){ var vp=this._viewport; var size=this.renderTargetSize; var sizeW=size.width; var sizeH=size.height; this._normalizedViewport.x=vp.x / sizeW; this._normalizedViewport.y=vp.y / sizeH; this._normalizedViewport.width=vp.width / sizeW; this._normalizedViewport.height=vp.height / sizeH; } return this...

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

174. 龙骨skeleton鼠标点击区域的设置 [ 85%]

...置龙骨动画的点击区域 首先通过getBounds获取龙骨动画的width和height(可以通过延迟timer来获取) 然后这是龙骨的hitArea(-width,-height,width,height) 参考示例: mArmature = mFactory.buildArmature(1); mArmature.play(0,true); Laya.stage.addChild(mArmatu...

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

175. image的uv动画不能平铺 [ 85%]

..._bitmap.source.uv; var uv:any[] = []; uv[0] = ss[0] + 2/this.testScrollImg.width; uv[1] = ss[1]; uv[2] = ss[2] + 2/this.testScrollImg.width; uv[3] = ss[3]; uv[4] = ss[4] + 2/this.testScrollImg.width; uv[5] = ss[5]; uv[6] = ss[6] + 2/this.testScrollImg.width; uv[7] = ss[7]; this.testScrollImg._bitmap...

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

176. 这种进度条怎么实现? [ 85%]

...ult class Test extends Sprite{ public DEF_SIZE: number = 200 public CIRCLE_WIDTH: number = 20 public $circleSprite: Sprite = new Sprite() public startY: number = -90 constructor() { super() this._init() } private _init() { this.cacheAs = "bitmap" this.size(this.DEF_SIZE,this.DEF_SIZE) this.pos(200,2...

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

177. Sprite-轴心点 [ 85%]

...tion() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; createApes(); })(); function createApes() ...

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

178. 移动端横竖屏适配(类似锁屏效果)? [ 85%]

...ts.Event; import laya.utils.Browser; public class ShiPei { private var fillWidth:Number=Browser.width; private var fillHeight:Number=Browser.height; public function ShiPei() { //设置初始化 Laya.init(fillWidth,fillHeight); //设置横屏显示 Laya.stage.screenMode="horizontal"; //默认触发...

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

179. dialog的lock属性没出现 [ 85%]

...rt laya.webgl.WebGL; public class DialogCenterClose { private const DIALOG_WIDTH:int = 220; private const DIALOG_HEIGHT:int = 275; private const CLOSE_BTN_WIDTH:int = 43; private const CLOSE_BTN_PADDING:int = 5; private var assets:Array; public function DialogCenterClose() { // 不支持WebGL时自...

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

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

...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.setTo(tex2d); } 附件 : --> demo.zip ...

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