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

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

991. 横竖屏切换,此引擎渲染有BUG [ 79%]

...  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

992. laya.html.XMLIterator_API3.0 [ 79%]

...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

993. Dialog的onShow方法重写无效 [ 79%]

...类里面有写这样的代码: 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

994. 网络和格式-Socket [ 79%]

...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

995. 使用百度地图显示当前位置(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 79%]

...的作用域。 ##### 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

996. laya.utils.Browser_API3.0 [ 79%]

...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

997. laya.d3.core.particleshuriken.module.shape.BoxShape_API3.0 [ 79%]

...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

998. 小游戏子域程序加载到图集后,取图集内资源报错。 [ 79%]

...源报错。 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

999. 新人求助:onStart赋值为什么在onUpdate会输出一次为空 [ 79%]

...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

1000. 性能测试-卡通人物 [ 79%]

...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