大约有 1,880 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0113 秒)
Laya_社区(1141) Laya3.0_api(242) Laya2.0_文档(103) Laya2.0_示例(94) Laya_示例(91) Laya2.0_api(82) laya_api(76) Laya3.0_文档(51)
...,此方法只执行一次 */ onAwake(): void { this.txtin.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtin.size(500, 60); //大小 this.txtin.pivot(this.txtin.width/2, this.txtin.height/2); //轴心点 this.txtin.font = "宋体"; //字体 this.txtin.fontSize = 50...
来源: Laya3.0_文档 发布时间: 20251010
...现这种效果。 var data = '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' + '<foreignObject width="100%" height="100%">' + '<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:40px">' + '<em>I</em> like ' + '<span style="color:white; te...
来源: Laya3.0_文档 发布时间: 20251010
...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
... 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
...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
...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
...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