大约有 310 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0058 秒)
Laya_社区(147) Laya2.0_文档(45) Laya_示例(35) Laya2.0_示例(32) Laya3.0_文档(17) Laya3.0_api(16) Laya2.0_api(11) laya_api(7)
...三、代码中使用3.1 同一个文本中设置Bold、Font、FontSize、Color、下划线3.2 同一个文本中设置字体、颜色不同3.3 获取html文本的实际宽高(contextWidth、contextHeight)3.4 设置文本的水平居中对齐(align需要和width配合使用)3.5 实现超链接3....
来源: Laya3.0_文档 发布时间: 20230303
..."Hello Layabox"; //设置文本颜色为白色,默认颜色为黑色 txt.color = '#ffffff'; //将文本内容添加到舞台 Laya.stage.addChild(txt); } } } ``` **步骤五**: 完成代码编写后,使用之前文章里配置的编译器,点击按钮开始编译,编译完成后会自动启...
来源: Laya2.0_文档 发布时间: 20210715
...s, this.onMousewheel); } this.createText = function (_content, _fontSize, _color, _width, _autoSize, _wordWrap, _ID) { var txt = new Text(); txt.text = _content; txt.cacheAs = 'bitmap'; txt.fontSize = _fontSize; txt.bold = true; txt.font = 'wordFont'; txt.color = _color; txt.strokeColor = '#000000';...
来源: Laya_社区 发布时间: 20161118
... 100)); camera.transform.translate(new Laya.Vector3(0, 1, 3)); camera.clearColor = null; Laya.loader.create(["../../res/threeDimen/skinModel/NvWu/NvWu-shenminvwu.lm", "../../res/threeDimen/skinModel/CunMinNan/CunMinNan-cunminnan.lm", "../../res/threeDimen/skinModel/XiaoFeiLong/XiaoFeiLong-xiaofeilon...
来源: Laya_示例 发布时间: 20251209
...。 * @param font 定义字号和字体,比如"20px Arial"。 * @param color 定义文本颜色,比如"#ff0000"。 * @param textAlign 文本对齐方式,可选值:"left","center","right"。 */ fillText(text: string | WordText, x: number, y: number, font: string, color: string, textAlign:...
来源: Laya3.0_文档 发布时间: 20251010
...)); //设置平行光颜色 directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); //加载小猴子精灵 let monkey = Laya.Loader.getRes("Export/LayaScene_JJF/Conventional/JJF.lh"); //猴子...
来源: Laya_社区 发布时间: 20190531
...a.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var textInput:TextInput = new T...
来源: Laya3.0_api 发布时间: 20231115
...Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var textArea:TextArea = new Tex...
来源: Laya3.0_api 发布时间: 20231115
...= new laya.ui.Label(); label.text = "fsadfsdfsdfsdfsdf"; label.color = "#ff0000"; label.fontSize = 40; label.y = 50; var label2 = new laya.ui.Label(); label2.text = "fsadfsdfsdfsdfsdf"; label2.color = "#0000ff"; label2.fontSize = 40; label2.y = 1...
来源: Laya_社区 发布时间: 20170401
... 代码如下 htmlDiv.width = 300; htmlDiv.height = 100; htmlDiv.style.color = color; htmlDiv.style.leading = leading; htmlDiv.style.align = "center"; htmlDiv.innerHTML = "确定要退出副本吗?"; 附件 : --> 2019-02-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20190227