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

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

741. 我浏览在线文档 关于共享材质和自身材质的代码 貌似没有什么不同? [ 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

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

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

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

745. 批量销毁释放内存(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

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

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

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

747. 给图片节点添加新创建的图片,会报这个错: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

748. 引用的类库问题 [ 90%]

...用的类库问题 var ViewStack=(function(_super){ function ViewStack(){ this._items=null; this._selectedIndex=0; ViewStack.__super.call(this); this._setIndexHandler=Handler.create(this,this.setIndex,null,false); } __class(ViewStack,'laya.ui.ViewStack',_super); 1. ViewStack.__super.call(this); 2. _...

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

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

750. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 90%]

...rite { private _boll1:Laya.Sprite; constructor() { super(); //物理模块 this._boll1 = new Laya.Sprite(); this.addChild(this._boll1); this._boll1.x = 20; this._boll1.loadImage('comp/btn_close.png'); let box:laya.physics.BoxCollider = this._boll1.addComponent(laya.physics.BoxCollider); box.height =...

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