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

大约有 350 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0063 秒)

161. laya的hitTestPoint没有第三个参数吗,只检测到矩形碰撞?惨了我as3人物的精确碰撞都靠第三个参数 怎么改装成h5? [ 69%]

...确碰撞都靠第三个参数 怎么改装成h5? public hitTestPoint( x:number,y:number ,shapeFlag:boolean ):boolean 计算显示对象,以确定它是否与 x 和 y 参数指定的点重叠或相交。x 和 y 参数指定舞台的坐标空间中的点,而不是包含显示对象的显示对...

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

162. laya.ui.VSlider_API3.0 [ 69%]

...);//把 vSlider 添加到显示列表。 } private function onChange(value:Number):void { trace("滑块的位置: value=" + value); } } } example Laya.init(640, 800);//设置游戏画布宽高 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色 var vSlider; Laya.loader.load(["resource/ui/...

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

163. UI-CheckBox [ 69%]

...)); } private onCheckBoxSkinLoaded(): void { var cb: CheckBox; for (var i: number = 0; i < this.COL_AMOUNT; ++i) { for (var j: number = 0; j < this.ROW_AMOUNT; ++j) { cb = this.createCheckBox(this.skins[i * this.ROW_AMOUNT + j]); cb.selected = true; cb.x = this.HORIZONTAL_SPACING * i + this.X_OFFSET...

来源: Laya2.0_示例 发布时间: 20240930

164. laya.ui.List_API3.0 [ 69%]

...[];//创建一个数组,用于存贮列表的数据信息。 for (var i: number = 0; i &lt; 20; i++) { arr.push({ label: "item" + i }); } var list: List = new List();//创建一个 List 类的实例对象 list 。 list.itemRender = Item;//设置 list 的单元格渲染器。 list.repeatX = 1;//设...

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

165. UI-Slider [ 69%]

...r(this, this.onChange); Laya.stage.addChild(vs); } private onChange(value: Number): void { console.log("滑块的位置:" + value); } } } new laya.UI_Slider();package { import laya.display.Stage; import laya.ui.HSlider; import laya.ui.VSlider; import laya.utils.Handler; import laya.webgl.WebGL; pu...

来源: Laya2.0_示例 发布时间: 20240930

166. laya.ui.HScrollBar_API3.0 [ 69%]

...ScrollBar 对象添加到显示列表。 } private function onChange(value:Number):void { trace("滚动条的位置: value=" + value); } } } example Laya.init(640, 800);//设置游戏画布宽高 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色 var hScrollBar; var res = ["resource/ui/h...

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

167. laya.ui.VScrollBar_API3.0 [ 69%]

...ScrollBar 对象添加到显示列表。 } private function onChange(value:Number):void { trace("滚动条的位置: value=" + value); } } } example Laya.init(640, 800);//设置游戏画布宽高 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色 var vScrollBar; var res = ["resource/ui/v...

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

168. UI-CheckBox [ 69%]

...)); } private onCheckBoxSkinLoaded(): void { var cb: CheckBox; for (var i: number = 0; i < this.COL_AMOUNT; ++i) { for (var j: number = 0; j < this.ROW_AMOUNT; ++j) { cb = this.createCheckBox(this.skins[i * this.ROW_AMOUNT + j]); cb.selected = true; cb.x = this.HORIZONTAL_SPACING * i + this.X_OFFSET...

来源: Laya_示例 发布时间: 20240930

169. laya.ui.Image_API3.0 [ 69%]

...激活。 Returns boolean 在场景中是否激活。 alpha get alpha(): number set alpha(value: number): void Inherited from Text.alpha Defined in laya/display/Sprite.ts:1026 透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。 Returns number Inherited from T...

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

170. laya.ui.ComboBox_API3.0 [ 69%]

...//将此 comboBox 对象添加到显示列表。 } private onSelect(index: number): void { console.log("当前选中的项对象索引: ", index); } } Hierarchy UIComponent ComboBox Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior itemRen...

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