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

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

141. Image 的 texture 和skin 的区别 [ 71%]

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

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

142. EffectMaterial在真机上texture为空 [ 71%]

...双手6根手指不停点击出现项目崩溃问题 Texture如何转换成Texture2D有人搞过吗 laya2.6阴影,在oppo小游戏真机上不显示 打包问题,在IDE 能够正常调试,打包在手机上便什么也木有,demo如下,请帮忙测试一下哦 问题状态 最新活动: 20...

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

143. 3d的纹理无法释放 [ 71%]

3d的纹理无法释放 如图,3d纹理类型是texture2d,不能执行disposebitmap方法 另外,官方给出的   var resouce = Laya.loader.getRes(resourceName); if(resouce) resouce.destroy(); 方法也无法释放内存,亲测,native上,系统内存会不断增长,直到崩溃,...

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

144. Effect材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 71%]

...材质 var material = new Laya.EffectMaterial(); //加载地球贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置纹理 material.texture = texture; })); earth.meshRenderer.material = material; ``` ![](img/1.gif)(图1)

来源: Laya2.0_文档 发布时间: 20210714

145. Effect材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 71%]

...材质 var material = new Laya.EffectMaterial(); //加载地球贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置纹理 material.texture = texture; })); earth.meshRenderer.material = material; ``` ![](img/1.gif)(图12)

来源: Laya2.0_文档 发布时间: 20210714

146. matter中更换texture [ 71%]

...片的事件,需要点击两次才能更换图片 Texture如何转换成Texture2D有人搞过吗 UI皮肤怎么动态设置图片资源,有时候需要更换整个文件夹的图片,有什么好的方法么 如果更换Sprite图片 Texture的getPixels()在Android下调用提示is not a function ...

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

147. TypeError: Cannot set property 'material' of undefined [ 70%]

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

148. 物理碰撞器(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 70%]

...var planeMat:Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex:Laya.Texture2D) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, ...

来源: Laya2.0_文档 发布时间: 20210715

149. 物理碰撞器(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 70%]

...//新建材质 var planeMat:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/grass.png", Handler.create(null, function(tex:Texture2D):void { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Vector4(10, 10, 0, 0); //设...

来源: Laya2.0_文档 发布时间: 20210714

150. Laya.BlinnPhongMaterial.RENDERMODE_TRANSPARENT设置透明度不行了? [ 69%]

... Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial();         Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) {             material.albedoTexture = tex;         }));         material.albedoColor = new Laya.Vector4(1.0, 1.0, 1.0, ...

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