大约有 169 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0076 秒)
Laya_社区(87) Laya3.0_api(38) Laya2.0_api(15) laya_api(15) Laya3.0_文档(10) Laya2.0_文档(2) Laya2.0_示例(1) Laya_示例(1)
...oolean Inherited from Button.toggle Defined in laya/ui/Button.ts:163 指定按钮按下时是否是切换按钮的显示状态。 example 以下示例代码,创建了一个 Button 实例,并设置为切换按钮。 example package { import laya.ui.Button; import laya.utils.Handler; public class ...
来源: Laya3.0_api 发布时间: 20231115
...oolean Inherited from Button.toggle Defined in laya/ui/Button.ts:163 指定按钮按下时是否是切换按钮的显示状态。 example 以下示例代码,创建了一个 Button 实例,并设置为切换按钮。 example package { import laya.ui.Button; import laya.utils.Handler; public class ...
来源: Laya3.0_api 发布时间: 20231115
...用动态合批的特性,我们来看一个例子: 场景中有四个按钮,每个按钮都是一个预制体实例,每个预制体里包含一个图片和一个文字对象,如图中所示: LayaAir是树状的显示对象结构,那么他们按深度展开后应该是: 因为文字...
来源: Laya3.0_文档 发布时间: 20251010
...会触发的回调函数处理器。 回调函数参数为用户点击的按钮名字name:String。 closeType closeType: string Defined in laya/ui/Dialog.ts:196 关闭类型,点击name为"close","cancel","sure","no","yes","no"的按钮时,会自动记录点击按钮的名称 group grou...
来源: Laya3.0_api 发布时间: 20231115
...,对性能有一定影响。 Sprite bar : Button[read-only] 表示滑块按钮的引用。 Slider blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 Componen...
来源: laya_api 发布时间: 20170929
...,对性能有一定影响。 Sprite bar : Button[read-only] 表示滑块按钮的引用。 Slider blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 Componen...
来源: laya_api 发布时间: 20170929
...,对性能有一定影响。 Sprite bar : Button[read-only] 表示滑块按钮的引用。 Slider blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 UICompon...
来源: Laya2.0_api 发布时间: 20190513
...,对性能有一定影响。 Sprite bar : Button[read-only] 表示滑块按钮的引用。 Slider blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 UICompon...
来源: Laya2.0_api 发布时间: 20190513
... } private function onSelect(index:int):void { trace("当前选择的单选按钮索引: index= ", index); } } } example Laya.init(640, 800);//设置游戏画布宽高、渲染模式 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色 Laya.loader.load(["resource/ui/radio.png"], laya.utils.H...
来源: Laya3.0_api 发布时间: 20231115
...点的范围,编辑模式自动退出,再次编辑需要再次点击该按钮。演示效果如动图12-7所示: (动图12-7) 3.3 矩形碰撞体 BoxCollider 公共的属性说明在上文的碰撞体基类属性,本节不再重复介绍 3.3.1 宽高 Size 矩形碰撞体,是封闭的直角...
来源: Laya3.0_文档 发布时间: 20251010