大约有 143 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0068 秒)
Laya3.0_api(61) Laya3.0_文档(44) Laya_社区(16) Laya2.0_api(7) laya_api(6) Laya2.0_文档(5) Laya2.0_示例(2) Laya_示例(2)
...ve any scaling applied to it. Anyway, scaling using Scale method will keep this method accurate. 该包围盒是否包含空间中另一OBB包围盒 Parameters obb:OrientedBoundBox — OBB包围盒 Returnsint — 返回位置关系 containsPoint()method public function containsPoint(point:Vector3)...
来源: Laya2.0_api 发布时间: 20190513
...。功能同Laya.timer.clearTimer()。 Parameters caller:* — 执行域(this)。 method:Function — 结束时的回调方法。 contains()method public function contains(node:Node):Boolean 当前容器是否包含指定的 Node 节点对象 。 Parameters node:Node — 指定的 Node 节点对...
来源: Laya2.0_api 发布时间: 20190513
...背景颜色。 Laya.loader.load("resource/ui/check.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var checkBox:CheckBox = new CheckBox("resource/ui/check.png", "这个是一个CheckBox组件。");//创建一个...
来源: Laya3.0_api 发布时间: 20231115
...背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var button:Button = new Button("resource/ui/button.png","label");//创建一个 Button 类的实例对象 butto...
来源: Laya3.0_api 发布时间: 20231115
...文本节点失去焦点时执行回调,发送数据 onAwake(): void { this.owner.on(Laya.Event.BLUR, this, this.sendData) } //将玩家数据上传至云端 sendData() { //组织数据 let KVDataList = []; let text = Number(this.owner.text); if(!isNaN(text) && text >= 0 && text...
来源: Laya3.0_文档 发布时间: 20251010
...resource/ui/progress.png", "resource/ui/progress$bar.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { progressBar = new ProgressBar("resource/ui/progress.png");//创建一个 ProgressBar 类的实例对象 progressBar 。 progressBar.x = 100;/...
来源: Laya3.0_api 发布时间: 20231115
...["resource/ui/hslider.png", "resource/ui/hslider$bar.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { hSlider = new HSlider();//创建一个 HSlider 类的实例对象 hSlider 。 hSlider.skin = "resource/ui/hslider.png";//设置 hSlider 的...
来源: Laya3.0_api 发布时间: 20231115
...["resource/ui/vslider.png", "resource/ui/vslider$bar.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { vSlider = new VSlider();//创建一个 VSlider 类的实例对象 vSlider 。 vSlider.skin = "resource/ui/vslider.png";//设置 vSlider 的...
来源: Laya3.0_api 发布时间: 20231115
...y 的值,用于控制 clip 对象的显示位置。 clip.on(Event.CLICK, this, onClick);//给 clip 添加点击事件函数侦听。 Laya.stage.addChild(clip);//将此 clip 对象添加到显示列表。 } private function onClick():void { trace("clip 的点击事件侦听处理函数。clip.total...
来源: Laya3.0_api 发布时间: 20231115
...source/ui/hscroll$down.png", "resource/ui/hscroll$up.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { hScrollBar = new HScrollBar();//创建一个 HScrollBar 类的实例对象 hScrollBar 。 hScrollBar.skin = "resource/ui/hscroll.png";//设...
来源: Laya3.0_api 发布时间: 20231115