大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0142 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...方法只执行一次 onAwake(): void { //点击Tab选择按钮的处理 this.tab.selectHandler = new Laya.Handler(this, this.onSelecte); } // 根据选择tab的索引切换页面 private onSelecte(index: number): void { //切换ViewStack子页面 this.viewstack.selectedIndex = index; } } 最终的...
来源: Laya3.0_文档 发布时间: 20251010
...pdateScore():void{ var data:Object = {}; var temp:Number = this.score; for (var i:int = 5; i > 0; i-- ){ data["item" i] = {index:Math.floor(temp)}; temp = temp/10; } trace(this.score); this.scorebox.dataSource = data; } 2017-02-21 0 0 ...
来源: Laya_社区 发布时间: 20170221
...画都没有改变。 调试的时候,在showDisplayByIndex函数里的this.currTexture=this.currDisplayData.createTexture(this.currTexture); 设置是成功了的,但是显示效果没有出来 用setSlotSkin设置外部皮肤的话就效果 2018-01-06 添加评论 免费帖 --> 分享 微博 Q...
来源: Laya_社区 发布时间: 20180106
...Form 1、constructor里的最后一行: Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements, [emailInput, birthdayInput, passwordInput]); 当stage调整尺寸时,对3个input位置进行调整,当初次运行时,3个input框排在网页左上角,必须手动改变一下浏览器大...
来源: Laya_社区 发布时间: 20221205
...// 尝试获取当前位置 Geolocation.getCurrentPosition( Handler.create(this, onSuccess), Handler.create(this, onError) ); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬度: (' + info.longitude + '°, ' + info.latitude + '°),精确度:' + info.ac...
来源: Laya2.0_文档 发布时间: 20210715
...// 尝试获取当前位置 Geolocation.getCurrentPosition( Handler.create(this, onSuccess), Handler.create(this, onError) ); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬度: (' + info.longitude + '°, ' + info.latitude + '°),精确度:' + info.ac...
来源: Laya2.0_文档 发布时间: 20210715
...strator/ruike/StudyLayaAirFB/src/HelloLayabox.as (7):warning:int.MAX_VALUE This variable is not defined. 2017-06-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 fzhgren 赞同来自: 补充下,1.7.5的IDE 和1...
来源: Laya_社区 发布时间: 20170623
...(other: Laya.PhysicsComponent): void { console.log("box2_onTriggerStay " + this.owner.name + " "+ other.owner.name); let b1:Laya.BoundBox = this.box.meshRenderer.boundingBox; let box2:Laya.MeshSprite3D = other.owner as Laya.MeshSprite3D; let b2:Laya.BoundBox = box2.meshRenderer.boundingBox; }获取b...
来源: Laya_社区 发布时间: 20181116
...tion(destroyChild){ (destroyChild===void 0)&& (destroyChild=true); this._idMap=null; _super.prototype.destroy.call(this,destroyChild); var list=laya.display.Scene.unDestroyedScenes; for (var i=0,n=list.length;i < n;i++){ if (list[i]===this){ list.splice(i,1); return; } } }这里改动了...
来源: Laya_社区 发布时间: 20181128
...new Laya.Sprite(); maskMc.graphics.drawTexture(tx,0,0,tx.width,tx.height); this.bar.displayObject.mask = maskMc; this.bar.visible = true; maskMc 是外部加载的一个纹理,就算是一起放在fairygui里面的还是不行this.bar 是在fairygui图集里面的纹理 2020-01-08 添加评论 ...
来源: Laya_社区 发布时间: 20200108