大约有 2,727 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0059 秒)
Laya_社区(1131) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya2.0_示例(109) Laya3.0_文档(86)
... MethodDefined By addPoolCacheManager(sign:String, maxCount:int = 100):void[static] 添加对象缓存管理 PoolCache getCacheList():Array 获取缓存的对象列表 PoolCache tryDispose(force:Boolean):void 尝试清理缓存 PoolCacheProperty DetailmaxCountpropertypublic var maxCount:in...
来源: laya_api 发布时间: 20170422
...tatic] 设置鼠标样式 MousePublic Methods MethodDefined By hide():void[static] 隐藏鼠标 Mouse show():void[static] 显示鼠标 MouseProperty Detailcursorpropertycursor:String 设置鼠标样式 Implementation public static function get cursor():String public static fun...
来源: Laya2.0_api 发布时间: 20190513
...erride] 获取几何体类型。 SubMesh _render(state:RenderContext3D):void[override] SubMesh destroy():void[override] 销毁。 SubMeshConstructor DetailSubMesh()Constructorpublic function SubMesh(mesh:Mesh) 创建一个 SubMesh 实例。 Parameters mesh:Mesh — 网格数据模板。 Method...
来源: Laya2.0_api 发布时间: 20190513
...showall"; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createSprite(); Laya.stage.on(Event.MOUSE_UP, this, this.onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, this.onMouseUp); } private createSprite(): void { this.sp = new Sprite(); var w: number = 300, h: number = ...
来源: Laya2.0_示例 发布时间: 20241119
...tToBaiduCoord = this.convertToBaiduCoord.bind(this); } private createDom():void { this.mapDiv = Browser.createElement("div"); var style = this.mapDiv.style; style.position = "absolute"; style.top = Laya.stage.height / Browser.pixelRatio + "px"; style.left = "0px"; style.width = Browser.width / Brows...
来源: Laya_示例 发布时间: 20241119
...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
...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_示例 发布时间: 20241119
...mber,speed:number)=>boolean,oncomp:(curlret:number, httpret:number)=>void, trynum:number, opttimeout:number)=>void; 处理zip文件的ZipFile类。 interface ZipFile{ /** * 注意这个文件不要太大,因为需要在内存中解开,太大了会直接导致崩溃。 */ setSrc(src:stri...
来源: Laya3.0_文档 发布时间: 20241024
... Public Methods Show Inherited Public Methods MethodDefined By destroy():void 销毁组件 Component onReset():void 重置组件参数到默认值,如果实现了这个函数,则组件会被重置并且自动回收到对象池,方便下次复用 如果没有重置,则不进行回收复用...
来源: Laya2.0_api 发布时间: 20190513
..._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_示例 发布时间: 20241119