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

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

731. UI-ScrollBar [ 86%]

...er.create(this, this.onSkinLoadComplete)); } private onSkinLoadComplete(): void { this.placeHScroller(); this.placeVScroller(); } private placeHScroller(): void { var hs: HScrollBar = new HScrollBar(); hs.skin = "../../res/ui/hscroll.png"; hs.width = 300; hs.pos(50, 170); hs.min = 0; hs.max = 100; h...

来源: Laya_示例 发布时间: 20260303

732. socket.sent [ 86%]

...ERROR, this, this.errorHandler); } private openHandler(event: any = null): void { //正确建立连接; console.log("建立"+event);//没有写出 } private receiveHandler(msg: any = null): void { ///接收到数据触发函数 console.log("收到"+msg);;//没有写出 console.log(msg);;//没有...

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

733. laya.physics.joint.PulleyJoint [ 86%]

... Public Methods Show Inherited Public Methods MethodDefined By destroy():void 销毁组件 Component onReset():void 重置组件参数到默认值,如果实现了这个函数,则组件会被重置并且自动回收到对象池,方便下次复用 如果没有重置,则不进行回收复用...

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

734. 计时器-延迟执行 [ 86%]

..._SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { var vGap: number = 100; this.button1 = this.createButton("点我3秒之后 alpha - 0.5"); this.button1.x = (Laya.stage.width - this.button1.width) / 2; this.button1.y = (Laya.stage.height - this.button1.height - vGap) ...

来源: Laya2.0_示例 发布时间: 20260303

735. laya.physics.joint.DistanceJoint [ 86%]

... Public Methods Show Inherited Public Methods MethodDefined By destroy():void 销毁组件 Component onReset():void 重置组件参数到默认值,如果实现了这个函数,则组件会被重置并且自动回收到对象池,方便下次复用 如果没有重置,则不进行回收复用...

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

736. laya.ui.Label [ 86%]

...ode 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 Component  changeText(text:Strin...

来源: laya_api 发布时间: 20170929

737. zip更新 · LayaAir3.4 · 引擎文档 · LAYABOX [ 86%]

...mber,speed:number)=>boolean,oncomp:(curlret:number, httpret:number)=>void, trynum:number, opttimeout:number)=>void; 处理zip文件的ZipFile类。 interface ZipFile{ /** * 注意这个文件不要太大,因为需要在内存中解开,太大了会直接导致崩溃。 */ setSrc(src:stri...

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

738. laya.net.Socket [ 86%]

...件侦听器和其他相关流程工作正常。 Socket  cleanSocket():void 清理socket。 Socket  close():void 关闭连接。 Socket  connect(host:String, port:int):void 连接到指定的主机和端口。 连接成功派发 Event.OPEN 事件;连接失败派发 Event.ERROR 事件;连...

来源: laya_api 发布时间: 20170929

739. socket无法连接服务器 [ 86%]

...State = EConnectionState.eDistconnected;         private initSocket(): void {             this.on(Laya.Event.OPEN, this, this.onConected);             this.on(Laya.Event.ERROR, this, this.onError);         }         public conectToServer(): void { //“连接”按钮的回...

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

740. laya.d3.animation.AnimationClip [ 86%]

...模板。 AnimationClip  onAsynLoaded(url:String, data:*, params:Array):void[override] private AnimationClipProtected Methods  MethodDefined By  detoryResource():void[override] 销毁资源,override it,同时修改memorySize属性。AnimationClipProperty Detailisloopingpropertypublic var islo...

来源: laya_api 发布时间: 20170929