大约有 770 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0074 秒)
...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
...c Properties Show Inherited Public Properties PropertyDefined By alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite anchorX : NumberX轴锚点,值为0-1Component anchorY : NumberY轴锚点,值为0-1Component autoSize : Boolean = ...
来源: laya_api 发布时间: 20170929
...raphics() 创建一个新的 Graphics 类实例。 Graphics alpha(value:Number):void 设置透明度。 Graphics clear(recoverCmds:Boolean = false):void 清空绘制命令。 Graphics clipRect(x:Number, y:Number, width:Number, height:Number):void 设置剪裁区域,超出剪裁区域的...
来源: laya_api 发布时间: 20170929
...[];//创建一个数组,用于存贮列表的数据信息。 for (var i: number = 0; i < 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
...//将此 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
...archy : Boolean[read-only] 获取在场景中是否激活。 Node alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent anch...
来源: Laya2.0_api 发布时间: 20190513
...Group);//将 radioGroup 添加到显示列表。 } private onSelect(index: number): void { console.log("当前选择的单选按钮索引: index= ", index); } } Hierarchy UIGroup RadioGroup Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior m...
来源: Laya3.0_api 发布时间: 20231115
...需使用getRenderTexture()可开启此属性。 Camera aspectRatio : Number 获取横纵比。 Camera boundFrustum : BoundFrustum[read-only] 获取摄像机视锥。 Camera clearColor : Vector4摄像机的清除颜色,默认颜色为CornflowerBlue。BaseCamera clearFlag : int清楚标记。...
来源: Laya2.0_api 发布时间: 20190513
...archy : Boolean[read-only] 获取在场景中是否激活。 Node alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite ambientColor : Vector3 获取环境光颜色。 Scene3D autoSize : Boolean = false 指定是否自动计算宽高数...
来源: Laya2.0_api 发布时间: 20190513
...数据部分。 Returns ArrayBuffer bytesAvailable get bytesAvailable(): number Defined in laya/utils/Byte.ts:595 可从字节流的当前位置到末尾读取的数据的字节数。 Returns number endian get endian(): string set endian(value: string): void Defined in laya/utils/Byte.ts:81 Byte 实...
来源: Laya3.0_api 发布时间: 20231115