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

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

1. laya.utils.Browser_API3.0 [ 100%]

...nt.clientHeight(不包含滚动条高度),如果前者为0或为空,则选择后者。 Returns number Defined in laya/utils/Browser.ts:406 浏览器窗口可视高度。 通过分析浏览器信息获得。浏览器多个属性值优先级为:window.innerHeight(包含滚动条高度) > docu...

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

2. laya.ui.List_API3.0 [ 82%]

...。 list.selectHandler = new Handler(this, onSelect);//设置 list 改变选择项执行的处理器。 Laya.stage.addChild(list);//将 list 添加到显示列表。 } private function onSelect(index:int):void { trace("当前选择的项目索引: index= ", index); } } } import laya.ui.Box; import...

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

3. laya.d3.core.render.PostProcessRenderContext_API3.0 [ 77%]

...ned in laya/d3/core/render/PostProcessRenderContext.ts:29 从回收的RT中选择一个RT 用来节省内存 Parameters width: number height: number colorFormat: RenderTargetFormat depthFormat: RenderTargetFormat Default value mipmap: boolean = false Default value multiSamples: number = 1 Default va...

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

4. laya.ui.RadioGroup_API3.0 [ 76%]

...组 Radio 控件,这些控件相互排斥; 因此,用户每次只能选择一个 Radio 控件。 example 以下示例代码,创建了一个 RadioGroup 实例。 package { import laya.ui.Radio; import laya.ui.RadioGroup; import laya.utils.Handler; public class RadioGroup_Example { public func...

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

5. laya.ui.Tab_API3.0 [ 72%]

...位置。 tab.selectHandler = new Handler(this, onSelect);//设置 tab 的选择项发生改变时执行的处理器。 Laya.stage.addChild(tab);//将 tab 添到显示列表。 } private function onSelect(index:int):void { trace("当前选择的表情页索引: index= ", index); } } } example Laya.i...

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

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

...boBox ComboBox 组件包含一个下拉列表,用户可以从该列表中选择单个值。 example 以下示例代码,创建了一个 ComboBox 实例。 package { import laya.ui.ComboBox; import laya.utils.Handler; public class ComboBox_Example { public function ComboBox_Example() { Laya.init(6...

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

7. laya.ui.ColorPicker_API3.0 [ 61%]

...icker 组件将显示包含多个颜色样本的列表,用户可以从中选择颜色。 example 以下示例代码,创建了一个 ColorPicker 实例。 package { import laya.ui.ColorPicker; import laya.utils.Handler; public class ColorPicker_Example { public function ColorPicker_Example() { La...

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

8. laya.media.SoundManager_API3.0 [ 55%]

... soundClass: {} = null 使用哪个声音类进行播放,null表示自动选择。 Default value startTime: number = 0 声音播放起始时间。 Returns SoundChannel SoundChannel对象,通过此对象可以对声音进行控制,以及获取声音信息。 Static removeChannel removeChannel(c...

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

9. laya.net.Socket_API3.0 [ 45%]

...ctByUrl 之前进行赋值,否则无效。 指定后,只有当服务器选择了其中的某个子协议,连接才能建立成功,否则建立失败,派发 Event.ERROR 事件。 see https://html.spec.whatwg.org/multipage/comms.html#dom-websocket Static BIG_ENDIAN BIG_ENDIAN: string = "bigE...

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

10. laya.ui.Radio_API3.0 [ 44%]

...i/Radio" Radio Class Radio Radio 控件使用户可在一组互相排斥的选择中做出一种选择。 用户一次只能选择 Radio 组中的一个成员。选择未选中的组成员将取消选择该组中当前所选的 Radio 控件。 see laya.ui.RadioGroup Hierarchy Button Radio Implements...

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