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

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

211. laya.ui.HSlider [ 43%]

...,对性能有一定影响。 Sprite bar : Button[read-only] 表示滑块按钮的引用。 Slider blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 UICompon...

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

212. 使用3D精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...示例,我们可以了解子父级关系。 (动图3-1) 通过点击按钮,让父节点移动,同时可以看到子节点也跟随移动 this.layaMonkeyParent.transform.translate(new Laya.Vector3(-0.2, 0, 0); (动图3-2) 通过点击按钮,让子节点移动,可以看到父节点...

来源: Laya3.0_文档 发布时间: 20251010

213. laya.ui.Clip_API3.0 [ 43%]

...]); } private function showTips1():void { _testTips.label.text = "这里是按钮[" + btn1.label + "]"; tip.addChild(_testTips); } private function showTips2(name:String):void { _testTips.label.text = "这里是" + name; tip.addChild(_testTips); } Returns any Inherited from UIComponent.toolTip Defin...

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

214. 复选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...示。 (动图1-4) 其余属性与Button相同,开发者可以根据按钮组件的文档进行理解。 1.3 脚本控制CheckBox 在Scene2D的属性设置面板中,增加一个自定义组件脚本。然后,将CheckBox组件拖入到其暴露的属性入口中。需要添加如下的示...

来源: Laya3.0_文档 发布时间: 20251010

215. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...eInspectorPanel(): InspectorPanel; } 4.2 示例 例如要动态创建一个按钮,可以用以下代码。 let button = IEditor.GUIUtils.createButton(); //它实现的功能其实和以下代码是相同的,只是更加简洁 //let button = gui.UIPackage.createWidgetSync("~/ui/basics/Button/Butt...

来源: Laya3.0_文档 发布时间: 20251010

216. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 41%]

...camera:Laya.Camera; /*摇杆控制器*/ private rocker:RockerView; /*攻击按钮控制器*/ private attack:attackView; /*摇杆上一帧角度*/ private lastAngle:number = 0; /*检测移动区碰撞器的射线*/ private ray:Laya.Ray; /*碰撞检测信息*/ private outHitInfo:Laya.RaycastHit; const...

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

217. laya.ui.WXOpenDataViewer_API3.0 [ 40%]

...]); } private function showTips1():void { _testTips.label.text = "这里是按钮[" + btn1.label + "]"; tip.addChild(_testTips); } private function showTips2(name:String):void { _testTips.label.text = "这里是" + name; tip.addChild(_testTips); } Returns any Inherited from UIComponent.toolTip Defin...

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

218. laya.ui.UIComponent_API3.0 [ 40%]

...]); } private function showTips1():void { _testTips.label.text = "这里是按钮[" + btn1.label + "]"; tip.addChild(_testTips); } private function showTips2(name:String):void { _testTips.label.text = "这里是" + name; tip.addChild(_testTips); } Returns any Defined in laya/ui/UIComponent.ts:285 ...

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

219. laya.display.Scene [ 40%]

...) Parameters type:String (default = null) — 如果是点击默认关闭按钮触发,则传入关闭按钮的名字(name),否则为null。 onOpened()method  public function onOpened(param:*):void场景打开完成后,调用此方法(如果有弹出动画,则在动画完成后执行) ...

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

220. laya.ui.ScaleBox_API3.0 [ 40%]

...]); } private function showTips1():void { _testTips.label.text = "这里是按钮[" + btn1.label + "]"; tip.addChild(_testTips); } private function showTips2(name:String):void { _testTips.label.text = "这里是" + name; tip.addChild(_testTips); } Returns any Inherited from UIComponent.toolTip Defin...

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