大约有 141 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0059 秒)
Laya_示例(52) Laya2.0_示例(35) Laya_社区(26) Laya2.0_文档(14) Laya3.0_api(7) Laya2.0_api(3) laya_api(2) Laya3.0_文档(2)
... Laya.stage.scaleMode = Stage.SCALE_SHOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(skins, Handler.create(this, onSkinLoadComplete)); } /***加载资源完成***/ private function onSkinLoadComplete(e:*=null):void { //创建水平滚动条 createHScroller(); }...
来源: Laya2.0_文档 发布时间: 20210714
...。 export interface IGUIUtils { /** * 编辑器默认的背景颜色 */ bgColor: gui.Color; /** * 编辑器默认的分割线颜色 */ lineColor: gui.Color; /** * 编辑器默认的文字颜色 */ textColor: gui.Color; createButton(autoSize?: boolean): gui.Button; createIconButton(flat?: boolean): ...
来源: Laya3.0_文档 发布时间: 20251010
...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { this.createInteractiveTarget(); this.createLogger(); } createInteractiveTarget() { const Event = Laya.Event, Sprite = Laya.Sprite; let rect = new Sprite(); rect.graphi...
来源: Laya2.0_示例 发布时间: 20251130
... | **功能说明** | | ---------- | ----------------------------- | | itemColors | 下拉列表项的各状态的标签文本颜色值集合。详细请参考API。 | | itemSize | 下拉列表项的标签文本的字体大小。 | ### 1.4 ComboBox 组件下拉按钮相关属性 ; this.eventListener(); } Construct() { let ground = new Laya.Sprite(); Laya.Laya.stage.addChild(ground); let rigidbody = new Laya.RigidBody(); rigidbody.type = "static"; ground.addComponent...
来源: Laya2.0_示例 发布时间: 20251130
...去 p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545} span.s1 {font: 12.0px '.PingFang SC'} 12-09 22:04:33.105 12728-12832/? E/LayaBox: >>>>>>>>>>>>>>>>>>>>>>>>>>>>className:layaai...
来源: Laya_社区 发布时间: 20181209
...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
...blic/Protected All Inherited Externals Only exported Menu Globals "laya/ui/ColorPicker" ColorPicker Class ColorPicker ColorPicker 组件将显示包含多个颜色样本的列表,用户可以从中选择颜色。 example 以下示例代码,创建了一个 ColorPicker 实例。 package { import l...
来源: Laya3.0_api 发布时间: 20231115
...directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.direction = new Laya.Vector3(1, -1, 0); var dude = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/dude/dude.lh")); dude.once(Laya.Event.HIERARCHY_LOADED, th...
来源: Laya_示例 发布时间: 20251130