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

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

1991. Texture如何转换成Texture2D有人搞过吗 [ 64%]

...String = base64Data .split(",")[0] .split(":")[1] .split(";")[0]; var ia = new Uint8Array(byteString.length); for (var i = 0; i < byteString.length; i++) { ia[i] = byteString.charCodeAt(i); } return new Browser.window.Blob([ia], { type: mimeStringp }); };4.这时就有个新生成的URL,因为...

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

1992. 用xml描述创建一个clip,interval字段妖孽无效 [ 64%]

...                                var clip:Clip = new Clip(node.getAttribute("res") as String);                 clip.anchorX = node.getAttribute("anchorX") as Number;                 clip.anchorY = node.getAttribute("anchorY") as Number;       ...

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

1993. 当使用代码创建打开场景时,onOpened触发了,但场景active和activeInHierarchy还是处于false,请问纯代码怎么实现场景创建激活,谢谢 [ 64%]

...请问纯代码怎么实现场景创建激活,谢谢?   const scene = new Laya.Scene(); scene.onOpened = () => { console.log('scene onOpened'); }; scene.open(); console.log('scene', scene.active, scene.activeInHierarchy); Laya.timer.frameOnce(10, this, () => {   console.log('scene 2', sc...

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

1994. 使用drawToCanvas截图多次之后,再也无法再本次程序中截图显示。没有任何报错 [ 64%]

...width,this.gridBox.height,0,0); //获取截屏区域的texture this._tex = new Laya.Texture(this._htmlC); this._photo=new Laya.Sprite(); //将截屏的texture进行draw绘制并显示到舞台 this._photo.name="testtt"; this._photo.graphics.drawTexture(this._tex,0,0,this.gridBox.width,this.gridBox.h...

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

1995. LIST renderHandler的ITEM高度自定义后,设置content变更其内部容器大小不生效 [ 64%]

...lasticDistance = ListConst.elasticDistance; this.list_view.renderHandler = new Laya.Handler(this, this.onItemUpdate); this.list_view.mouseHandler = new Laya.Handler(this, this.onItemClick); this.list_view.array = ;// 这里必须要初始化数据 }   ViewActivityLimitedTask.prototype.onItemUpdate ...

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

1996. [LayaAir3]2d拖尾 首次调用拖尾的时候调用Laya.Scene.gc()后报错 [ 64%]

...static init() { .... let mat = Laya.Trail2DRender.defaultTrail2DMaterial = new Laya.Material(); mat.lock = true;//加上这行 防止Laya.Scene.gc 释放掉 .... }         2025-06-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

1997. laya.d3.core.particleShuriKen.module.GradientColor [ 64%]

...  MethodDefined By  GradientColor() 创建一个 GradientColor,不允许new,请使用静态创建函数。 实例。 GradientColor  clone():* 克隆。 GradientColor  cloneTo(destObject:*):void 克隆。 GradientColor  createByConstant(constant:Vector4):GradientColor[static] 通过固定...

来源: Laya2.0_api 发布时间: 20190513

1998. uglify压缩后的错误堆栈解析 [ 64%]

...ttp://cangqiong.17dawan.com/v ... 341015)"; // 错误信息 const tracey = new Stacktracey(errorStack); // 解析错误信息 const { readFileSync } = fs; for(const frame of tracey.items) {  // frame.fileName const sourceMapContent = JSON.parse(readFileSync(mapFilePath, 'utf8')); const consumer = a...

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

1999. laya.d3.core.particleShuriKen.module.GradientColor [ 64%]

...  MethodDefined By  GradientColor() 创建一个 GradientColor,不允许new,请使用静态创建函数。 实例。 GradientColor  clone():* 克隆。 GradientColor  cloneTo(destObject:*):void 克隆。 GradientColor  createByConstant(constant:Vector4):GradientColor[static] 通过固定...

来源: laya_api 发布时间: 20170929

2000. 请问UI之间的场景切换要怎么写 [ 64%]

...his,onLoaded),null,Laya.Loader.ATLAS); function onLoaded(){ Laya.sg_sign = new sg_sign(); Laya.stage.addChild(Laya.sg_sign); } function onWxSign1(){ Laya.sg_sign.removeSelf(); Laya.Pool.recover("sg_sign",Laya.sg_sign); Laya.sg_index = new sg_index(); Laya.stage.addChild(Laya.sg_index); } 这样写...

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