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

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

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

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

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

22. 火狐花屏问题 [ 72%]

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

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

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

...同来自: 请问具体是怎样实现的? 我也遇到了这个问题 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

24. laya.net.Loader [ 71%]

...ring = text[static] 文本类型,加载完成后返回文本。Loader  TEXTURE2D : String = TEXTURE2D[static] Texture2D资源。Loader  TEXTURECUBE : String = TEXTURECUBE[static] TextureCube资源。Loader  TTF : String = ttf[static] TTF字体类型,加载完成后返回null。Loader  XM...

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

25. 又又发现惊天大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

26. 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

27. 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

28. TypeError: Cannot set property 'material' of undefined [ 67%]

...erials.lmat") as Laya.UnlitMaterial;         var unlitTexture:Laya.Texture2D = Laya.Loader.getRes("Images/BG_PopWindow.png") as Laya.Texture2D; material.albedoTexture = unlitTexture; this.unit3D.meshRenderer.material = material; 附件 : --> 2019-09-07 添加评论 免费帖 --> 分享 微...

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

29. 同一类型光源互斥的问题报告 [ 65%]

...lbedo = new Laya.Vector4(0.8, 0.8, 0.8, 0); material.diffuseTexture = Laya.Texture2D.load("images/bg03.png"); box.meshRender.material = material; //平面 var plane = sprite3D.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(15, 15, 1, 1))); plane.transform.position = new Laya.Vector3(0, 0, 0); var...

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

30. 对象池3D问题 [ 65%]

...tutu=tietu.skinnedMeshRender.sharedMaterial; tietutu.diffuseTexture = Laya.Texture2D.load("fish/denglongyu/denglongyu1.jpg") var zombieAnimator = layaMonkey.getChildByName("denglongyu").getComponentByType(Laya.Animator) }))   这个是直接创建一个对象。然后别的地方再克隆、我想...

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