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

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

1. 打CPK包在手机上运行会白屏,手机测试型号VIVO1419L。 [ 100%]

..., ignoring 10-13 17:31:15.901 6514-6514/com.vivo.vs W/chromium: [WARNING:resource_bundle.cc(315)] locale_file_path.empty() 10-13 17:31:15.901 6514-6514/com.vivo.vs I/chromium: [INFO:aw_browser_main_parts.cc(63)] Load from apk succesful, fd=90 off=872512 len=2961 10-13 17:31:15.901 6514-6514/com.vivo...

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

2. [LayaAir3]使用videoNode播放视频没有控制器 [ 84%]

... video.options.controls = true; video.options.objectFit = "contain"; video.source = "resources/你的视频.mp4"; video.play();需要注意的是, 第一,视频模式要是播放器模式才会有控件按钮。 第二,mode和options这些要放到source之前设置。   另外,我们的B...

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

3. oppo CanvasRenderingContext2D 并没有实现 drawImage;报错; [ 83%]

...ata, *设置之后纹理宽高可能会发生变化。 */ __proto.loadImageSource=function(source,premultiplyAlpha){ (premultiplyAlpha===void 0)&& (premultiplyAlpha=false); var width=source.width; var height=source.height; this._width=width; this._height=height; this._setWarpMode(/*laya.webg...

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

4. Texture2D.setPixels会导致图片质量变差了,获取原生的pixels没有进行改动。怎么回事呢? [ 76%]

..."res/textures/marry_frame_005.png"; url= Laya.URL.formatURL(url); var imageSource=new Laya.Browser.window.Image(); var thisObj = this; var onload=function (){ var tex=new Laya.Texture2D(imageSource.width,imageSource.height,1,false,true); tex.wrapModeU=1; tex.wrapModeV=1; tex.loadImageSource(imageSou...

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

5. 在画布上播放video问题的思路 [ 75%]

...r htmlCanvas:HTMLCanvas = HTMLCanvas.create(HTMLCanvas.TYPE2D); htmlCanvas.source.width = 100; htmlCanvas.source.height = 100; htmlCanvas.size(100, 100); // 在单独的画布上绘制矩形。 htmlCanvas.getContext("2d").fillStyle = "#FFFF00"; htmlCanvas.getContext("2d").fillRect(20, 20, 60, 60); /...

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

6. setSubPixels画布擦除不掉 [ 74%]

...useEnabled = false; this.aImg = aImg; } //清除目标纹理的像素 let _sourceTex:Laya.Texture = Laya.Loader.getRes(this.aUrl); let ret = new Uint8Array(_sourceTex.width * _sourceTex.height * 4); let tex2d:Laya.Texture2D = this.aImg.source["_bitmap"]; tex2d.setPixels(ret);//填充像素数据 //...

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

7. HTMLCanvas Laya.stage.addChild(HTMLCanvas); 挂载到舞台报错 [ 70%]

...vasType(1);                 conchModel.drawToCanvas(canvas.source, offsetX, offsetY);                 return canvas;             } else {                 return RunDriver.drawToCanvas(this, _renderType, canvasWidth, canvasHeight, offsetX, o...

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

8. 关于laya生成的canvas定位问题导致内部事件不正确 [ 64%]

...的链接 提交 1 个回复 cuixueying 赞同来自: Render._mainCanvas.source.style.left = "300px"; Render._mainCanvas.source.style.top = "300px"; 你不要手动去该layaAir canvas标签的属性,在代码里通过上面的代码调试canvas的位置试下! 2017-04-27 0 1 分享 微博 QZON...

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

9. [LayaNative3]VideoNode功能在鸿蒙上不支持? [ 63%]

... video.options.controls = true; video.options.objectFit = "contain"; video.source = src; //设置视频源文件 video.autoPlay=true; this.view.addChild(video); 2025-10-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个...

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

10. GL ERROR :GL_INVALID_OPERATION [ 63%]

...n-For-WebGL-120AECC8]GL ERROR :GL_INVALID_OPERATION : glDrawElements: Source and destination textures of the draw are the same. 百度了一下,是webgl底层报出来的,不知道这怎么解决?   2017-10-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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