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

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

391. laya.ui.TextArea_API3.0 [ 70%]

...示位置。 textArea.width = 300;//设置 textArea 的宽度。 textArea.height = 200;//设置 textArea 的高度。 Laya.stage.addChild(textArea);//将 textArea 添加到显示列表。 } } } example Laya.init(640, 800);//设置游戏画布宽高、渲染模式 Laya.stage.bgColor = "#efefef";//设...

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

392. laya.ui.VScrollBar [ 70%]

...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component downButton : Button下按钮 ScrollBar elast...

来源: laya_api 发布时间: 20170929

393. 龙骨skeleton鼠标点击区域的设置 [ 70%]

...骨动画的点击区域 首先通过getBounds获取龙骨动画的widthheight(可以通过延迟timer来获取) 然后这是龙骨的hitArea(-width,-heightwidthheight) 参考示例: mArmature = mFactory.buildArmature(1); mArmature.play(0,true); Laya.stage.addChild(mArmature); m...

来源: Laya_社区 发布时间: 20161122

394. laya.ui.AdvImage [ 70%]

...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array...

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

395. 陀螺仪与加速计(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 70%]

...; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation); } private  onDeviceorientation(absolute: Boolean, rotationInfo: Laya.RotationInfo): void { this.info.tex...

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

396. laya.ui.HScrollBar [ 70%]

...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component downButton : Button下按钮 ScrollBar elast...

来源: laya_api 发布时间: 20170929

397. 分享一个Shader版的CoolDown实现 [ 70%]

...    var texWidth: number = texture.width;                 var texHeight: number = texture.height;                 //定义颜色值,取值范围0~1 浮点。                 const red: number = 1;                 const greed: number = 1;                 co...

来源: Laya_社区 发布时间: 20170606

398. laya.ui.VSlider [ 70%]

...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array...

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

399. laya.ui.CheckBox [ 70%]

...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component filters : Array滤镜集合。可以设置多...

来源: laya_api 发布时间: 20170929

400. 【laya2.0】加载并且显示图片,并且让该图片居于舞台中央,怎么写? [ 70%]

..."complete!!"); logo.x= Laya.stage.width/2-logo.width/2; logo.y= Laya.stage.height/2-logo.height/2; //logo.pos(Laya.stage.width/2-logo.width/2,Laya.stage.height/2-logo.height/2); })); 2018-10-10 0 1 分享 微博 QZONE 微信 hj 赞同来自: 你用这个方法的时候,鼠标在这停留一秒钟...

来源: Laya_社区 发布时间: 20181010