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

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

21. webgl 模式下 用graphics.drawTexture 平铺图片 图片不显示是什么原因 [ 76%]

...么原因 this.texture1 = Laya.loader.getRes('res/images/bg1.png'); this.texture2 = Laya.loader.getRes('res/images/bg2.png'); var repeatX = 8 ; var repeatCount = Math.ceil(stageW / repeatX); for(let i = 0; i < repeatCount ; i++) { this.bg1.graphics.drawTexture(this.texture1,8*i,0); this.bg2.graph...

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

22. Image 的 texture 和skin 的区别 [ 75%]

...引擎有什么区别? layaair与layabox的区别 Texture如何转换成Texture2D有人搞过吗 view和Dialog区别 关于打包图集时的图片默认属性与repeat的区别 Dialog和View用destroy和Laya.stage.removeChild有什么区别? 问题状态 最新活动: 2018-03-01 10:01 浏览: 225...

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

23. 2.x引擎项目升级指南 · LayaAir3.0文档 · LAYABOX [ 75%]

...url2 = "xxxxx.png"; var type1 = Laya.Loader.IMAGE; var type2 = Laya.Loader.TEXTURE2D; Laya.loader.load([url1, url2]).then((res:Array<any>)=> { //加载多个,不带类型 }); Laya.loader.load([url1, url2], type).then((res:Array<any>)=> { //加载多个,统一设置类型 }); La...

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

24. laya.resource.Texture2DArray_API3.0 [ 73%]

...rotected All Inherited Externals Only exported Menu Globals "laya/resource/Texture2DArray" Texture2DArray Class Texture2DArray 2D 纹理 数组 Hierarchy BaseTexture Texture2DArray Index Constructors constructor Properties _id depth destroyedImmediately lock name url uuid DEBUG Accessors anisoLevel ...

来源: Laya3.0_api 发布时间: 20231115

25. Laya.Image对象如何转换为Base64 [ 73%]

....1.0.btea1 怎么获取对象的坐标 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 3d坐标转换问题 unity的坐标和旋转转换到laya需要做什么运算 问题状态 最新活动: 2018-08-29 17:15 浏览: 2857 关注: 4 人 152*****...

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

26. 火狐花屏问题 [ 73%]

...(type !== "nativeimage") {                         image = new Texture2D();                         var alpha = Laya.Browser.onFirefox;                         image.loadImageSource(imageData,alpha);                     }                     _t...

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

27. 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function [ 71%]

...同来自: 请问具体是怎样实现的? 我也遇到了这个问题 Texture2D.load("res/env/mountain1_3.png", Handler.create(null, function(tex:Texture2D):void {             menu_sprite_jian.graphics.drawTexture(tex,0,0);             }));这样然后无法drawtexture报...

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

28. 又又发现惊天大bug [ 69%]

又又发现惊天大bug 使用Texture2D.load这个图片报错https://flock.oss-cn-beijing.aliyuncs.com/avatar/2e9c1503-3c16-354c-7c82-4cd8508a1685?x-oss-process=image/resize,h_432,m_lfit   原因_loadTexture2D方法里面解析不出来地址类型,临时解决方案type给个默认值nativeim...

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

29. setSubPixels画布擦除不掉 [ 69%]

...= new Uint8Array(_sourceTex.width * _sourceTex.height * 4); let tex2d:Laya.Texture2D = this.aImg.source["_bitmap"]; tex2d.setPixels(ret);//填充像素数据 //该操作在vulkan中会有杂点,directX opengl没有问题 tex2d.setSubPixels(0,0,w,h,dt);// 这里有问题 注释掉 在微信小游戏v...

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

30. 3D支持图集吗? [ 69%]

...ongMaterial = new Laya.BlinnPhongMaterial(); material.albedoTexture = Laya.Texture2D.load("magic/sg.png"); box.meshRender.material = material;   附件 : --> 2018-03-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

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