大约有 1,342 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0120 秒)
...戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/tab.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var tab:Tab = new Tab();//创建一个 Tab 类的实例对象 tab 。 tab.sk...
来源: Laya3.0_api 发布时间: 20231115
...cene.addChild(new Laya.DirectionLight()); //设置平行光颜色 directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); //加载小猴子精灵 let monkey = Laya.Loader.getRes("Export/LayaScene_JJF/Conventiona...
来源: Laya_社区 发布时间: 20190531
...理的属性面板上,把纹理类型改为默认值类型。 勾选sRGB颜色空间 注意不要勾选预乘Alpha(Spine导出的时候也不要勾选) 点击应用 以上操作如图4-1所示: (图4-1) 注意:如果应用后效果不对,刷新一下IDE即可。 另外,如果有多...
来源: Laya3.0_文档 发布时间: 20260131
...tring): void Inherited from Box.bgColor Defined in laya/ui/Box.ts:25 背景颜色 Returns string Inherited from Box.bgColor Defined in laya/ui/Box.ts:29 背景颜色 Parameters value: string Returns void blendMode get blendMode(): string set blendMode(value: string): void Inherited from Text.blendMo...
来源: Laya3.0_api 发布时间: 20231115
...理的属性面板上,把纹理类型改为默认值类型。 勾选sRGB颜色空间 注意不要勾选预乘Alpha(Spine导出的时候也不要勾选) 点击应用 以上操作如图3-1所示: (图3-1) 注意:如果应用后效果不对,刷新一下IDE即可。 另外,如果有多...
来源: Laya3.0_文档 发布时间: 20260203
..., lineHeight: 200, fontSize: 40, textAlign: "center", }, // 文字的最终颜色为#ff0000 redText: { color: "#ff0000", }, }; // JS部分,用于控制开放数据域的各种逻辑 function init() { wx.onMessage((data) => { Layout.clear(); Layout.init(template, style); Layout.layout(sharedCont...
来源: Laya3.0_文档 发布时间: 20251010
...ight:bold:none; 字体是否是粗体,功能同bold color:#ff0000; 字体颜色 stroke:2px; 字体描边宽度 strokeColor:#ff0000; 字体描边颜色 padding:10px 10px 20px 20px; 边缘的距离 vertical-align:top|bottom|middle; 垂直对齐方式 align:left|right|center; 水平对齐方式 line-...
来源: Laya3.0_api 发布时间: 20231102
...h | 必须为32位,否则没有透明层。 | | Presets | 字体的初始颜色。如果用白色字,可以设定为`White text with alpha`,即白色字透明底。 | | Width | 导出的位图宽度 | | Height | 导出的位图高度 | | Font descriptor | 字体描述文件,必须要选择 x...
来源: Laya2.0_文档 发布时间: 20210715
...、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vscroll$up.png"], Handler.create(this, onLoadComplete)); } private function onLoadComplete():voi...
来源: Laya3.0_api 发布时间: 20231115
...、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vscroll$up.png"], Handler.create(this, onLoadComplete)); } private function onLoadComplete():voi...
来源: Laya3.0_api 发布时间: 20231115