大约有 458 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0050 秒)
Laya_社区(258) Laya3.0_api(91) Laya2.0_文档(60) Laya_示例(22) Laya3.0_文档(10) Laya2.0_api(10) laya_api(7)
...e; }else{ var unlitMat = new Laya.PBRStandardMaterial(); var texture: Laya.Texture2D = Laya.loader.getRes("Reference/cardtest.png"); unlitMat.albedoTexture = texture; cardOne.meshRenderer.material = unlitMat; cardOne.meshRenderer.castShadow = true; } }真心求教大佬,怎么才能让在底板下...
来源: Laya_社区 发布时间: 20191223
...laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; import laya.d3.resource.models.BaseMesh; import laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.resource.Texture; import laya.util...
来源: Laya_示例 发布时间: 20251130
...ialog限制拖动区域有什么方法 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 第一个程序 hello laya显示不出文本,只是显示一些之前表格,单选项之类的东西 dialog通过UIConfig设置UIConfig.closeDialogOnSide ...
来源: Laya_社区 发布时间: 20180620
...如图三),代码如下: public drawScreenshot(): void { if (!this.tempTexture2D) { this.tempTexture2D = new Laya.Texture2D(1280,720); } if (!this.tempTexture) { this.tempTexture = new Laya.Texture(this.tempTexture2D); } // Laya.timer.once(110, this, function(){ let cans = Laya.Browser.document....
来源: Laya_社区 发布时间: 20191230
...(3) var boxMat = new Laya.StandardMaterial(); boxMat.diffuseTexture = Laya.Texture2D.load("https://s2.d2scdn.com/2018/1/2 ... 6quot;); box.meshRender.material = boxMat; // var ape = new Laya.Sprite() // Laya.stage.addChild(ape) // ape.loadImage('https://s2.d2scdn.com/2018/1/2/474ebb47-f3af-4426-bc07...
来源: Laya_社区 发布时间: 20180104
...分享 微博 QZONE 微信 zfree 赞同来自: 新版本untiy UnityEngine.Texture2D.EncodeToPNG 去掉了见截图 我这边还是导出的时候 报错 MissingMethodException: Method not found: 'UnityEngine.Texture2D.EncodeToPNG'. 资源见unity.zip. 导出配置见截图 导出工具1.6.1,u...
来源: Laya_社区 发布时间: 20170428
...er的方式能不能加载ani文件? 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 有没有Unity3d的Vector3.Angle(计算两个三维向量之间的角度)这样的方法?或求3D抛物线移动的方法或算法。 LayaAir 2D有没...
来源: Laya_社区 发布时间: 20170926
...rdMaterial(); //材质加载漫反射贴图 material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); //为模型赋材质(单个材质可赋给多个模型) sphere.meshRender.material = material; box.meshRender.material = material; } } new LayaAir3D(); 2018-03-02 1 1 分享 微博 QZONE...
来源: Laya_社区 发布时间: 20180302
...有文字的贴图,贴上去, 2是把文字绘制成图,然后传给texture2d 贴上去 2018-08-14 0 2 分享 微博 QZONE 微信 Constantine 赞同来自: 那请问用方法2 如何在laya中实现把文字绘制成图? 2018-09-10 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回...
来源: Laya_社区 发布时间: 20180814
...material.albedo = new Vector4(1.3, 1.3, 1.3, 1); material.diffuseTexture = Texture2D.load("res/bg.png"); plane.meshRender.material = material; //生成坐标中心,其实是球体 var sphere = scene.addChild(new MeshSprite3D(new SphereMesh(0.05,100,100))) as MeshSprite3D; var material = new Standa...
来源: Laya_社区 发布时间: 20170314