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

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

31. UI-Clip [ 94%]

...ya.Image; let bg = new Image(bgSkin); bg.size(224, 302); bg.pos(Laya.stage.width - bg.width >> 1, Laya.stage.height - bg.height >> 1); Laya.stage.addChild(bg); } createTimerAnimation() { const Clip = Laya.Clip; this.counter = new Clip(clipSkin, 10, 1); Laya.stage.addChild(this.counter); this.counter...

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

32. layaUI.max.all.js 这个文件怎么生成的? [ 94%]

..."child":[{"props":{"x":0,"y":0,"skin":"comp/bg.png","sizeGrid":"30,4,4,4","width":600,"height":400},"type":"Image"},{"props":{"x":41,"y":56,"skin":"comp/button.png","label":"点我赋值","width":150,"height":37,"sizeGrid":"4,4,4,4","var":"btn"},"type":"Button"},{"props":{"x":401,"y":56,"skin":"comp...

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

33. laya.d3.core.HeightMap [ 94%]

...。 HeightMap  minHeight : int[read-only] 最大高度。 HeightMap  width : int[read-only] 获取宽度。 HeightMapPublic Methods  MethodDefined By  HeightMap(width:int, height:int, minHeight:Number, maxHeight:Number) 创建一个 HeightMap 实例。 HeightMap  createFromImage(texture:Tex...

来源: laya_api 发布时间: 20170929

34. laya.d3.core.HeightMap [ 94%]

...。 HeightMap  minHeight : int[read-only] 最大高度。 HeightMap  width : int[read-only] 获取宽度。 HeightMapPublic Methods  MethodDefined By  HeightMap(width:int, height:int, minHeight:Number, maxHeight:Number) 创建一个 HeightMap 实例。 HeightMap  createFromImage(texture:Tex...

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

35. laya.d3.resource.models.QuadMesh [ 94%]

...c Properties PropertyDefined By  long : Number 返回长度 QuadMesh  width : Number 返回宽度 QuadMeshPublic Methods  MethodDefined By  QuadMesh(long:Number = 1, width:Number = 1) 创建一个四边形模型 QuadMeshProtected Methods  MethodDefined By  recreateResource():void[override...

来源: laya_api 发布时间: 20170929

36. mask在width<1的时候会失效 [ 94%]

mask在width&lt;1的时候会失效 this.imgMask.width = 0; 设置width小于1的时候遮罩会失效 layaair 2.3.0 layaIde2.3.0 附件 : --> GameWebsite.zip 2019-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...

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

37. 性能测试-虫子(慎入) [ 94%]

...aya.Rectangle; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); wrapBounds = new Rectangl...

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

38. 问一下Sprite的width,height是不是不pivotX,pivotY无关 [ 94%]

问一下Sprite的width,height是不是不pivotX,pivotY无关 如题,我如何指定一个pivotX,pivotY居中的图片的width和height缩小后不偏移 就是说我现在有张图片pivotX,pivotY是居中的 我想让他的width和height的点击范围变小,可以变小后,监听区域就...

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

39. 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 [ 94%]

跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 偶发性bug。 Uncaught (in promise) TypeError: Cannot read property 'width' of null     at Function.Texture._create (laya.core.js:15946)     at Texture.__proto._onLoaded (laya.core.js:15750)     at EventHandler._...

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

40. oppo CanvasRenderingContext2D 并没有实现 drawImage;报错; [ 94%]

...lpha){ (premultiplyAlpha===void 0)&amp;&amp; (premultiplyAlpha=false); var width=source.width; var height=source.height; this._width=width; this._height=height; this._setWarpMode(/*laya.webgl.WebGLContext.TEXTURE_WRAP_S*/0x2802,this._wrapModeU); this._setWarpMode(/*laya.webgl.WebGLContext.TEXTURE_WR...

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