大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0081 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
... oldWith: number = 0; oldheight: number = 0; HengPing(isFirst: boolean): void { if (Laya.stage != null) { this.oldWith = Laya.Browser.clientWidth; this.oldheight= Laya.Browser.clientHeight; } console.log("设置横屏" + isFirst); if (isFirst) Laya3D.init(1280, 720, true); else Laya.stage.width ...
来源: Laya_社区 发布时间: 20180517
...s any Methods Static begin begin(source: string, lowerCaseName?: boolean): void Defined in laya/html/XMLIterator.ts:33 Parameters source: string Optional lowerCaseName: boolean Returns void Static getAttribute getAttribute(attrName: string): string Defined in laya/html/XMLIterator.ts:218 Parameters ...
来源: Laya3.0_api 发布时间: 20231115
...类里面有写这样的代码: override protected function initialize():void { on(Event.ADDED, this, onShow); on(Event.REMOVED, this, onHide); } protected function onShow():void { } protected function onHide():void { }我创建的View类 重写onShow方法可以正常使用,但dialog重写就...
来源: Laya_社区 发布时间: 20161220
...arCodeAt(i)); } socket.flush(); } private function onSocketClose(e:*=null):void { trace("Socket closed"); } private function onMessageReveived(message:*=null):void { trace("Message from server:"); if (message is String) { trace(message); } else if (message is ArrayBuffer) { trace(new Byte(message).r...
来源: Laya_示例 发布时间: 20260303
...的作用域。 ##### 2.1 init函数: ```java private function init():void { mapDiv = Browser.createElement("div"); Browser.document.body.appendChild(mapDiv); // 适应窗口尺寸 refit(); Laya.stage.on(Event.RESIZE, this, refit); // 初始化地图 map = new BMap.Map(map...
来源: Laya2.0_文档 发布时间: 20210715
...c clientHeight get clientHeight(): number set clientHeight(value: number): void Defined in laya/utils/Browser.ts:401 浏览器窗口可视高度。 通过分析浏览器信息获得。浏览器多个属性值优先级为:window.innerHeight(包含滚动条高度) > document.body.clientHeight(不...
来源: Laya3.0_api 发布时间: 20231115
...de 克隆。 Returns any 克隆副本。 cloneTo cloneTo(destObject: any): void Overrides BaseShape.cloneTo Defined in laya/d3/core/particleShuriKen/module/shape/BoxShape.ts:97 override Parameters destObject: any Returns void generatePositionAndDirection generatePositionAndDirection(position: Vector...
来源: Laya3.0_api 发布时间: 20231115
...源报错。 MsgMgr.instance.init(); Laya.timer.once(1000,this,function():void{ beginLoad(); }); private function beginLoad():void { Laya.loader.load("res/images/rank.json", Handler.create(this, onLoaded)); } private function onLoaded():void { trace("加载成功"); var c:Image = new Image("rank/cou...
来源: Laya_社区 发布时间: 20180830
...xtends Laya.Script{ lab:Laya.Label; onAwake():void{ } onStart():void{ this.lab=this.owner as Laya.Label; } onUpdate():void{ if(this.lab==null){ ...
来源: Laya_社区 发布时间: 20200602
...this.createCharacters), null, Loader.ATLAS); } private createCharacters(): void { this.characterGroup = []; for (var i: number = 0; i = 0; --i) { this.animateCharactor(this.characterGroup[i]); } } private animateCharactor(charactor: Sprite): void { charactor.x += this.moveSpeed; charactor.rotation +...
来源: Laya2.0_示例 发布时间: 20260303