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

大约有 562 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0050 秒)

161. Sprite3D的克隆(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 66%]

...ps://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Sprite3D&name=Sprite3DClone)) ```typescript { ...... //加载模型 Laya.loader.create("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, this.onComplete)); } //完成回调 onComplete() { //获取资源 va...

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

162. PBRStandardMaterial材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 66%]

...ps://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Material&name=PBRStandardMaterialDemo))。 ```typescript //实例PBR材质 var mat:PBRStandardMaterial = new Laya.PBRStandardMaterial(); //反射贴图 Laya.Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Mat...

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

163. laya.display.Animation [ 66%]

...only] 返回鼠标在此对象坐标系上的 Y 轴坐标信息。 Sprite name : String节点名称。Node numChildren : int[read-only] 子对象数量。 Node optimizeScrollRect : Boolean 指定是否对使用了 scrollRect 的显示对象进行优化处理。默认为false(不优化)。 当值...

来源: laya_api 发布时间: 20170929

164. 关于removeChildren、 destroydestroyChildren的疑惑 [ 66%]

... = (function () { function sightBeadSprite() { SightBead.super(this); this.name = 'sightBead'; this.graphics.drawCircle(0,0,40,null,'#ff0000',1); this.graphics.drawLine(-45,0,45,0,'#ff0000',1); this.graphics.drawLine(0,45,0,-45,'#ff0000',1); this.alpha = 0; Laya.stage.addChild(this); // this.pos(440...

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

165. parameter 2 is not of type 'WebGLTexture' [ 65%]

...回复问题请先登录 发起人 yunzhongjushi 相关问题 关于@prop {name:Tab,type:Node} 我觉得好麻烦啊 ,请问一下有别的方法吗 2.0.0编译报错Cannot find global type 'Array' TypeScript 泛形方法如何传TYPE? 发布微信小程序提示找不到type属性 Property 'BoxMe...

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

166. Sprite3D的克隆(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 65%]

...ps://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Sprite3D&name=Sprite3DClone)) ```typescript { ...... //加载模型 Laya.loader.create("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, this.onComplete)); } //完成回调 onComplete() { //获取资源 va...

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

167. 如何把加载好的二进制数据转成Texture? [ 65%]

...|| win.WebKitBlobBuilder || win.MozBlobBuilder || win.MSBlobBuilder; if (e.name == 'TypeError' && win.BlobBuilder) { var bb = new win.BlobBuilder(); bb.append(fragment); blob = bb.getBlob("image/png"); } } var url: string = URL.createObjectURL(blob) var htmlImg: Laya.HTMLImage = La...

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

168. Cannot read property 'toDefault' of undefined报错是什么原因 [ 65%]

...ay, this._outHitInfo, Number.MAX_VALUE, 10); if (this._outHitInfo.sprite3D.name === "tlj"){ isRotate = !isRotate; } // this.phasorSpriter3D.begin(Laya.WebGLContext.LINES, state); // //绘出射线 // this.phasorSpriter3D.line(this.ray.origin.x, this.ray.origin.y, this.ray.origin.z, 1.0, 0.0, 0.0, 1....

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

169. 请问UI中新建页面选项中仅作为参考宽度、高度的勾选有什么用??一般UI有什么区别吗?? [ 65%]

...用二的幂次方图集非二的幂次方图集区别在哪? varname 的详细区别是什么? 请问下加载TFF字体要怎么加载呢? 请问2.0的版本开始,我用ts编写的相关内容,都要使用importexport吗? 从unity导出的场景透贴模型烘焙的灯光...

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

170. list中加的button不能接收点击事件 求一个list中加button的demo [ 65%]

...h;i++){             var itemList = new BagItem(items.icon,items.name,items.count);             itemList.pos(70,posY);             data.push(itemList);             posY = posY + 200;         }         let list = new Laya.List;         l...

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