• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 183 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0076 秒)

151. 一篇了解LayaAir的屏幕适配,及有效抗锯齿(TypeScript-LayaAir基础篇(TS)-屏幕适配) [ 38%]

... ![图11-2](img/11-2.png) (图11-2) 特别说明一下,背景屏幕颜色为黑色的是画布默认背景色,不是stage背景色。通过`Laya.stage.bgColor`可以改变默认的画布背景色。在noscale模式下的白屏背景那是浏览器默认的,说明画布就那么大,画布...

来源: Laya2.0_文档 发布时间: 20210715

152. laya.ui.ViewStack [ 38%]

...设置为true,对性能有一定影响。 Sprite bgColor : String背景颜色Box blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 UIComponent cacheAs : St...

来源: Laya2.0_api 发布时间: 20190513

153. laya.d3.core.light.SpotLight [ 38%]

...uation : Vector3 获取聚光的衰减。 SpotLight color : Vector3 灯光颜色。 LightSprite componentsCount : int[read-only] 获得组件的数量。 Sprite3D destroyed : Boolean[只读]是否已经销毁。对象销毁后不能再使用。Node diffuseColor : Vector3 获取灯光的漫反射...

来源: laya_api 发布时间: 20170929

154. laya.html.dom.HTMLDivElement_API3.0 [ 37%]

...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

155. laya.ui.UIGroup_API3.0 [ 35%]

...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

156. laya.ui.TextInput_API3.0 [ 35%]

...、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var textInput:TextInput = new TextInput("这是一个TextInput实例。");...

来源: Laya3.0_api 发布时间: 20231115

157. laya.ui.TextArea_API3.0 [ 35%]

...戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var textArea:TextArea = new TextArea("这个一个TextArea实例。");//...

来源: Laya3.0_api 发布时间: 20231115

158. laya.display.Sprite_API3.0 [ 34%]

...、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { sprite = new Sprite();//创建一个 Sprite 类的实例对象 sprite 。 sprite.loadImage("resource/ui/bg.png");//加载并显示图片。 sprite.x = 200;//设置 sprite ...

来源: Laya3.0_api 发布时间: 20231115

159. laya.ui.Panel [ 34%]

...设置为true,对性能有一定影响。 Sprite bgColor : String背景颜色Box blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 UIComponent  cacheAs : ...

来源: Laya2.0_api 发布时间: 20190513

160. laya.ui.List_API3.0 [ 34%]

...、渲染模式。 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