大约有 27 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)
...,比如"#ff0000"。 * @param textAlign 文本对齐方式,可选值:"left","center","right"。 */ fillText(text: string | WordText, x: number, y: number, font: string, color: string, textAlign: string): FillTextCmd { return this.addCmd(FillTextCmd.create(text, x, y, font, color, textAlign,...
来源: Laya3.0_文档 发布时间: 20251010
...区分左 Shift 键和右 Shift 键:左 Shift 键的值为 KeyLocation.LEFT,右 Shift 键的值为 KeyLocation.RIGHT。另一个示例是区分标准键盘 (KeyLocation.STANDARD) 与数字键盘 (KeyLocation.NUM_PAD) 上按下的数字键。 Returns number metaKey get metaKey(): boolean Defined ...
来源: Laya3.0_api 发布时间: 20231115
...串中使用变量 对齐 align 对齐方式,水平对齐(align)分别是left(居左对齐)、center(居中对齐)、right(居右对齐);垂直对齐(valign)分别是top(居顶对齐)、middle(居中对齐)、bottom(居底对齐) 背景颜色 bgColor 背景颜色,勾选...
来源: Laya3.0_文档 发布时间: 20251010
...tion globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scrollRect skewX skewY stage staticCache texture timer toolTip top transform url viewport visible width x y zOrder Metho...
来源: Laya3.0_api 发布时间: 20231115
...C }; //字符串形式的枚举 enum Direction { Up = 'UP', Down = 'DOWN', Left = 'LEFT', Right = 'RIGHT' }; @regClass() export class Script extends Laya.Script { @property(Number)//数字类型,等价于{ type : "number" } num : number; @property(String)//单行字符串文本类型,等价于 {...
来源: Laya3.0_文档 发布时间: 20251010
...这个不能少。 iframe.style.zIndex = 100;//设置层级 iframe.style.left ="100px"; iframe.style.top ="100px"; iframe.src = "http://ask.layaair.com/"; Laya.Browser.document.body.appendChild(iframe); 这里面需要提醒开发者的就是定位和层级要记得设置。很多开发者不注意...
来源: Laya3.0_文档 发布时间: 20251010
...,比如"#ff0000"。 * @param textAlign 文本对齐方式,可选值:"left","center","right"。 */ fillText(text: string | WordText, x: number, y: number, font: string, color: string, textAlign: string): FillTextCmd { return this.addCmd(FillTextCmd.create(text, x, y, font, color, textAlign,...
来源: Laya3.0_文档 发布时间: 20251010