大约有 1,720 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0055 秒)
Laya_社区(1002) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(48)
...w Inherited Public Properties PropertyDefined By cmds : ArrayGraphics height : Number 表示显示对象的高度,以像素为单位。 AutoBitmap sizeGrid : Array 当前实例的有效缩放网格数据。 如果设置为null,则在应用任何缩放转换时,将正常缩放整个显示...
来源: Laya2.0_api 发布时间: 20190513
...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"; Laya.loader.load(AniConfPath, Handler.create(this, createAnimat...
来源: Laya_示例 发布时间: 20251209
... == openID1) { var buff = BuffInfo.buffer; var width = BuffInfo.width; var height = BuffInfo.height; BK.Script.log(0,0,"headeBuff :"+ openId + " buff:"+ buff + " width:"+ width +" height:"+height); var tex = new BK.Texture(buff,width,height); var sp =new BK.Sprite(200,200,tex,0,1,1,1); BK.Director.r...
来源: Laya_社区 发布时间: 20180417
...空绘制命令。 Graphics clipRect(x:Number, y:Number, width:Number, height:Number):void 设置剪裁区域,超出剪裁区域的坐标不显示。 Graphics destroy():void 销毁此对象。 Graphics drawCircle(x:Number, y:Number, radius:Number, fillColor:*, lineColor:* = null, lineWidt...
来源: laya_api 发布时间: 20170929
...p Index Constructors constructor Properties _color uv Accessors cmds color height sizeGrid source width Methods addCmd alpha clear clipRect destroy drawCircle drawCurves drawEllipse drawImage drawLine drawLines drawPath drawPie drawPoly drawRect drawTexture drawTextures drawTriangles fillBorderText ...
来源: Laya3.0_api 发布时间: 20231115
...ze(600, 400); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#CCCCCC"); // 每次舞台尺寸变更时,都会调用Utils.fitDOMElementInArea设置Video的位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoEle...
来源: Laya_示例 发布时间: 20251209
...tCmd Class ClipRectCmd 裁剪命令 Hierarchy ClipRectCmd Index Properties height width x y ID Methods recover Properties height height: number Defined in laya/display/cmd/ClipRectCmd.ts:26 高度。 width width: number Defined in laya/display/cmd/ClipRectCmd.ts:22 宽度。 x x: number Defined in l...
来源: Laya3.0_api 发布时间: 20231115
...on get width():Number{ return _shape.width; } override public function get height():Number{ return _shape.height; } } } BUG2:package ui.test { import laya.display.Sprite; import laya.events.Event; public class MyBox1 extends Sprite { private var _sprite:Sprite; public function MyBox1() { super(); _s...
来源: Laya_社区 发布时间: 20170124
...var bounds = ani.getGraphicBounds(); ani.scale(100/bounds.width,100/bounds.height) 我想把动画宽高都设置成100 100 可是这2种方法都不能实现 该怎么去实现 2017-06-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20170629
...Viewport 类用于创建视口。 Public Properties PropertyDefined By height : Number高度Viewport maxDepth : Number最大深度Viewport minDepth : Number最小深度Viewport width : Number宽度Viewport x : NumberX轴坐标Viewport y : NumberY轴坐标ViewportPublic Methods M...
来源: laya_api 发布时间: 20170929