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

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

741. 如何让发布后的H5加载资源用src或href指向本地路径,而不是网络请求 [ 90%]

...rome-extension, https.   load(url) {             var me = this;             url = URL.formatURL(url);             this.url = url;             this.audioBuffer = WebAudioSound._dataCache[url];             if (this.audioBuffer) {...

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

742. List设置滚动到指定位置之后,无法往回拖动 [ 90%]

...17-12-27 23:51 浏览: 930 关注: 2 人 tyl925450909 • 2017-12-27 23:58 this.herolist= new Laya.List(); this.herolist.selectEnable = true; this.herolist.itemRender = HeroStartHeadItem; this.heropanel.addChild(this.herolist); //UI中直接添加的panel 已经实例化 this.heropanel.hScrollBarSki...

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

743. 我浏览在线文档 关于共享材质和自身材质的代码 貌似没有什么不同? [ 90%]

...取并修改自身材质: ...... //添加3D场景----------------------- this.scene = new Laya.Scene(); Laya.stage.addChild(this.scene); //方法一:直接异步加载 // var mesh:Laya.Mesh = Laya.Mesh.load("LayaScene_01/Assets/model/loveScene_jianzhu.lm"); // var meshSprite3D:Laya.MeshSprite3D ...

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

744. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 90%]

...都没执行 LayaAir 1.7.17 beta JS版本 function postData(url,request) { this.http = new Laya.HttpRequest(); //new一个HttpRequest类 this.http.once(Laya.Event.PROGRESS,this,this.onProgress); //数据传输中 this.http.once(Laya.Event.COMPLETE,this,this.onComplete); //数据传输完成后,会...

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

745. Cannot read property 'load' of null [ 90%]

...tatic s_instance = null; public static getInstance():MapManager { if(null==this.s_instance) { this.s_instance=new MapManager(); this.s_instance.init(); } return this.s_instance; } private init() { } private skins: Array<string>; private mapImg:Laya.Image; private constructor() { } public GetMa...

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

746. Texture自动恢复还是存在另外的问题 [ 90%]

...a.resource.Texture类 __proto.recoverBitmap=function(){        var _$this=this;         var url=this._bitmap.url;         if (!this._destroyed && (!this._bitmap || this._bitmap.destroyed)&& url){             Laya.loader.load(url,Handler.create(this,function...

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

747. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 90%]

...rce&name=GarbageCollection)) ```typescript function(e:Laya.Event):void { this._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene)//_scene不...

来源: Laya2.0_文档 发布时间: 20210715

748. 给图片节点添加新创建的图片,会报这个错:node._setParent is not a function [ 90%]

...新创建的图片,会报这个错:node._setParent is not a function this.imageBg = this.owner.getChildByName("image_bg"); console.log("this.imageBg==="+this.imageBg); for (let iColumns = 1; iColumns < this.intColumns; iColumns++) { this.arrLove[iColumns] = []; for (let iRows = 1; iRows < ...

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

749. fairygui库中this._displayObject空判断问题 [ 90%]

fairygui库中this._displayObject空判断问题 为什么其他的方法都加了this._displayObject为null的判断(例如 handleSizeChanged、handleScaleChanged、handleGrayedChanged等等)而 handleXYChanged中却不做null判断,是有什么特殊原因吗? 附件 : --> 2019-10-17 添...

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

750. laya绘制图形进行缩放的时候有问题 [ 90%]

...着变小 a1748004424 • 2018-02-11 16:41 if (e.delta > 0 && this.scaleX >= 0.5) { this.scaleX -= 0.1; this.scaleY -= 0.1; for (var i = 0; i < this.nodes.length; i++) { this.nodes[i].scaleX += 0.1; this.nodes[i].scaleY += 0.1; } } else if (e.delta < 0 && this.scaleX <...

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