大约有 1,873 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0061 秒)
Laya_社区(1137) Laya3.0_api(242) Laya2.0_文档(103) Laya2.0_示例(94) Laya_示例(91) Laya2.0_api(82) laya_api(76) Laya3.0_文档(48)
... b = sprite.getBounds(); if (b.width <= 0 || b.height <= 0) { return; } 同时,发现这里区域计算与第一次渲染不一致,以下是修改后的; //start ...
来源: Laya_社区 发布时间: 20210629
...ce); reference.size(640, 960); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#CCCCCC"); // 每次舞台尺寸变更时,都会调用Utils.fitDOMElementInArea设置Video的位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElement...
来源: Laya_社区 发布时间: 20180119
...ents customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray group height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation s...
来源: Laya3.0_api 发布时间: 20231102
...this.mapRect =new Laya.Rectangle( -4380+Laya.stage.width, -2375+Laya.stage.height, 4380-Laya.stage.width+4380, 2375-Laya.stage.height+2375 ); 2025-07-29 0 1 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20250726
...这个也是最快捷方便的一个方法了(本来使用Laya。stage.width,发现,发现只要尺寸变换就要从新获取比较麻烦) 2018-07-24 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 设置 宽高等于 Laya.stage.width, height 2018-07-23 0 1 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180723
...'middle'; contentText.height = 0; contentText.wordWrap = true; contentText.width = parseInt(trueWidth*0.9); contentBox.width = parseInt(trueWidth*0.9); contentBox.height = contentText.height+20; 附件 : --> 2018-03-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...
来源: Laya_社区 发布时间: 20180305
...Point; // 程序入口 class GameMain{ constructor() { Laya.init(Browser.width, Browser.height, WebGL); this.CreateCircle(); // this.CreateRectangle(); } private firstSp: Laya.Sprite; private _adaptSp: Laya.Sprite; private _pointList : Point[]; private _rootSp : Laya.Sprite; public CreateCircle(...
来源: Laya_社区 发布时间: 20190314
...hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components content customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCall...
来源: Laya3.0_api 发布时间: 20231115
...xture的x位置。 * @param y 相对于目标Texture的y位置。 * @param width 截取的宽度。 * @param height 截取的高度。 * @return 返回一个新的Texture。 */ public static function createFromTexture(texture:Texture, x:Number, y:Number, width:Number, height:Number):Texture 这个...
来源: Laya_社区 发布时间: 20180110
...aya.Browser.createElement('canvas'); //设置大小 canvas.width = Laya.stage.width; canvas.height = Laya.stage.height; ctx = canvas.getContext('2d'); Laya.stage.graphics.clear(false);//清空绘制命令。 var textture = new Laya.Texture(canvas); ...
来源: Laya_社区 发布时间: 20190411