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

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

1781. 导航容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 77%]

...方法只执行一次 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

1782. 读取大块材质中的图片并图片切割 [ 77%]

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

1783. spine动画设置插槽皮肤没效果 [ 77%]

...画都没有改变。 调试的时候,在showDisplayByIndex函数里的this.currTexture=this.currDisplayData.createTexture(this.currTexture); 设置是成功了的,但是显示效果没有出来 用setSlotSkin设置外部皮肤的话就效果 2018-01-06 添加评论 免费帖 --> 分享 微博 Q...

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

1784. 引擎示例中的错误 [ 77%]

...Form 1、constructor里的最后一行: Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements, [emailInput, birthdayInput, passwordInput]); 当stage调整尺寸时,对3个input位置进行调整,当初次运行时,3个input框排在网页左上角,必须手动改变一下浏览器大...

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

1785. 用Geolocation获取地理位置信息(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 77%]

...// 尝试获取当前位置 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

1786. 用Geolocation获取地理位置信息(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 77%]

...// 尝试获取当前位置 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

1787. var m:int = int.MAX_VALUE [ 77%]

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

1788. 2.0TS3D物体碰撞,如何获取双方包围盒 [ 77%]

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

1789. bug:laya.Scene.destroy [ 77%]

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

1790. 遮罩在安卓显示正常,在ios下显示不正常。 [ 77%]

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