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

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

11. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 93%]

...; this.htmlvideo.video.addEventListener("loadedmetadata",()=>{ var videoTexture:Laya.VideoTexture = new Laya.VideoTexture(); videoTexture.video = this.htmlvideo.video; videoTexture.video.play(); videoTexture.video.loop = true; var texture2D = new Laya.Texture2D(videoTexture.video.videoWidth,video...

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

12. image.drawToCanvas方法获取的一直是空的png [ 92%]

... laya.display.Stage; import laya.resource.HTMLCanvas; import laya.resource.Texture; import laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class LayaAirDemo { private var img:Image; public function LayaAirDemo() { Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_...

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

13. 引擎自带的图集图片丢失问题 [ 91%]

...擎 刚体碰撞点位置获取不正确 IDE1.7.8 json图集加载问题 Texture图片能否进行翻转? 图集打包找不到图集文件 matter中layasprite怎么改变图片大小? iphone自带浏览器页面怎么锁定 问题状态 最新活动: 2018-03-25 14:56 浏览: 827 关注: 2 人 a...

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

14. [LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 91%]

...; this.htmlvideo.video.addEventListener("loadedmetadata",()=>{ var videoTexture:Laya.VideoTexture = new Laya.VideoTexture(); videoTexture.video = this.htmlvideo.video; videoTexture.video.play(); videoTexture.video.loop = true; var texture2D = new Laya.Texture2D(videoTexture.video.videoWidth,video...

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

15. 如何实现将相机渲染的画面显示在ui上 laya3d camera.rendertarget 返回的时rendertexture 不能赋值给imagetexture [ 90%]

...渲染的画面显示在ui上 laya3d camera.rendertarget 返回的时rendertexture 不能赋值给imagetexture 2019-05-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 骑乐在途 赞同来自: 同问 2020-06...

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

16. 资源加载 · LayaAir3.0文档 · LAYABOX [ 90%]

...) export class LoaderDemo extends Laya.Script { onAwake(): void { this.loadTexture("resources/image/monkey2.png", 500);//需要在resources/image放入相应的资源 this.loadTexture("https://layaair.com/3.x/demo/resources/res/apes/monkey2.png"); } /**加载并显示图片 */ loadTexture(url: strin...

来源: Laya3.0_文档 发布时间: 20230728

17. Image [ 89%]

...age var img___=new Image(); html的 image标签 怎么才能转换成 laya.texture     var img___=new Image();         img___.src="res/card/select_main_card_bg.png"         img___.onload = function(){             var image = new Laya.Image()             image.source = img___  ...

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

18. 从大图里边截取一部分显示,为啥显示不出来? [ 88%]

...ge(); imgBig.skin="big.jpg";  let imgCut:Laya.Image=new Laya.Image(); let texture:Laya.Texture=Laya.Texture.create(imgBig,0,0,100,100); imgCut.texture=texture; Laya.stage.addChild(imgCut); 2019-04-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

19. 克隆sprite [ 88%]

...什么克隆一个对象啊?  在下面的“   tempSpr2.graphics.drawTexture(tempSpr.texture, 0, 0, tempSpr.width, tempSpr.height);”中 tempSpr.texture 是空的 if (data && data.items != []) {             let tempSpr: Sprite = new Sprite();             let tempImg: Lay...

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

20. 关于微信小游戏的开放数据域,请问如何将开放数据域的canvas绘制到layaair的image上? [ 88%]

...据域canvas // this.view.image_rank_list //要绘制的图片 // var rankTexture = new Laya.Texture(wxMgr.getOpenDataCanvas()); // rankTexture.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 // console.log(rankTexture); // var img = wxMgr.getOpenDataCanvas().toDataURL("image...

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