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

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

611. HttpRequest感觉没有发成功 [ 81%]

...; xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("https://www.baidu.com","","get","text"); function processHandler(data){ console.log(data); console.log("pro...

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

612. 图集动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 81%]

...) { //初始化舞台 Laya.init(1334,750,Laya.WebGL); //创建动画实例 this.roleAni = new Laya.Animation(); //加载动画图集,加载成功后执行回调方法 this.roleAni.loadAtlas("res/atlas/role.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //添加到舞...

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

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

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

614. PBRStandardMaterial材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 81%]

...R Barrel/Materials/Textures/Barrel_AlbedoTransparency.png', Handler.create(this, function(texture:Texture2D):void { mat.albedoTexture = texture; })); //法线贴图 Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_Normal.png', Handler.create(this, fun...

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

615. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 81%]

...res/atlas/comp.atlas' Laya.loader.load(aniEffConfPath, Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报错 Main.js:61 Uncaught ReferenceError: ui is no...

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

616. drawToCanvas真机资源无法释放 [ 81%]

... 2018-12-19 0 5 分享 微博 QZONE 微信 大林 赞同来自: var htmc = this.paper.displayObject.drawToCanvas(this.paper.displayObject.width, this.paper.displayObject.height, 0,0); htmc.destroy(); --------》     __proto.destroy=function(){         this._ctx && this._ctx.destr...

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

617. ???????? 为啥加一个 Text,drawcall 暴增? [ 81%]

...i_imgs/icon_00313.png"; fish.scoreItem.sizeGrid = '0,10,0,10'; var price = this.getFishVal('10001', 3); var length = String(price).length; var w = length * 16 + 15 + 40; fish.scoreItem.width = w; fish.scoreItem.x = fish.getBox().x - fish.scoreItem.width/2; fish.scoreItem.y = fish.getBox().y - fish.s...

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

618. 那个文本溢出需要滚动条怎么弄,API里面就说用Scroll接口,小白 不懂怎么弄 [ 81%]

...来自: Laya.init(500,400,Laya.WebGL);createText();function createText(){this.txt = new Laya.Text();this.txt.overflow = Laya.Text.SCROLL;this.txt.text = "Layabox是HTML5引擎技术提供商与优秀的游戏发行商,面向AS/JS/TS开发者提供HTML5开发技术方案!\n" ;this.txt.size(200,10...

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

619. 骨骼动画换装显示不刷新问题 [ 81%]

...er_png");  var mc_data = ResLoad.getInstance().getAtlasUrl("tiger_sk");  this.mFactory = new Laya.Templet(); this.mFactory.parseData(Laya.loader.getRes(mc_png),Laya.loader.getRes(mc_data));  this.skeleton = this.mFactory.buildArmature(1); 使用下面代码更换骨骼插槽纹理,无法更新...

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

620. 版本管理swf找同名的Json文件发现找不到 [ 81%]

...    (atlas===void 0)&& (atlas=false);             this['_url']=url=Laya.URL.formatURL(url);             if(atlas)this['_atlasPath']=atlasPath?atlasPath:url.split(".swf")[0]+".json";             this.stop();             //this['_clear'](); ...

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