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

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

321. rigidBody.applyForce 物体不会移动 [ 48%]

...ar material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load( "res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = tex; }) ); box.meshRenderer.material = material; //设置文本显示框位置 this.text.x = Laya.stage.wi...

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

322. laya如何才能展示3dUI [ 48%]

...29 15:07 @Laya_Aaron:我看了你以前的写的那个做个面片,贴上texture2d的贴图,但是回报一个空textrue.source是Undefined Laya_Aaron • 2019-04-29 17:26 @咕噜咕噜:不用搞那么复杂,u3d 里面直接弄个显示的面片 导出使用 咕噜咕噜 • 2019-04-29 21:26 @...

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

323. ShaderPass介绍(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 48%]

...e; void main() { vec4 albedoTextureColor = vec4(1.0); albedoTextureColor = texture2D(u_AlbedoTexture, v_Texcoord0); gl_FragColor=albedoTextureColor; } ``` ##### 初始化自定义Shader > 导入着色器代码 ```javascript var OutlineVS:String = __INCLUDESTR__("../customShader/outline.vs"); var Out...

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

324. 实线描边的滤镜如何实现?目前只有发光滤镜 [ 48%]

...r = vec3(0.0, 1.0, 0.0);\r\nvec2 textureSize = vec2(84, 84);\r\nvec4 myC = texture2D(texture, v_texcoordAlpha.xy);\r\nif (myC.a >= 0.5)\r\n{\r\ngl_FragColor = v_color * myC;\r\nreturn;\r\n}\r\nint strokeCount = 0;\r\nstrokeCount += getIsStrokeWithAngel(0.0);\r\nstrokeCount += getIsStrokeWithAngel...

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

325. laya阴影问题 [ 47%]

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

326. Sprite3D-Sprite3D加载 [ 47%]

...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_示例 发布时间: 20240930

327. popupEffect 有谁能告诉我dialog的这个东西要怎么用啊? [ 47%]

...ialog限制拖动区域有什么方法 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 第一个程序 hello laya显示不出文本,只是显示一些之前表格,单选项之类的东西 dialog通过UIConfig设置UIConfig.closeDialogOnSide ...

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

328. 3D+2D场景截屏,在不同浏览器显示效果不一致 [ 46%]

...如图三),代码如下: 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

329. 微信小游戏wxmin图片加载有点问题 [ 45%]

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

330. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 45%]

...分享 微博 QZONE 微信 zfree 赞同来自: 新版本untiy UnityEngine.Texture2D.EncodeToPNG 去掉了见截图 我这边还是导出的时候 报错 MissingMethodException: Method not found: 'UnityEngine.Texture2D.EncodeToPNG'. 资源见unity.zip. 导出配置见截图 导出工具1.6.1,u...

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