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

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

101. IDE创建3D示例项目(ActionScript-3D基础(AS3)-快速开始一个LayaAir3D项目) [ 65%]

...false, false); var material:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(null, function(tex:Texture2D):void { material.albedoTexture = tex; })); box.meshRenderer.material = material; ``` #####

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

102. 如何加载使用从服务器下载的图片 [ 65%]

...后使用URL.basePath方法。 例如:   material.diffuseTexture = Laya.Texture2D.load("res/layabox.png");box.meshRender.material = material;Laya.URL.basePath = "https://XXXX.com";//请把XXXX换成自己的真实网址;//在此之下,再使用load加载资源,都会自动加入URL网址。...

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

103. IDE创建3D示例项目(TypeScript-3D基础(TS)-快速开始一个LayaAir3D项目) [ 65%]

...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; ``` #####

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

104. laya2.0 截图功能分享,直接截取屏幕上所有对象 [ 64%]

...戏正常可用 private static _sp: Laya.Sprite = null; private static tempTexture2D: Laya.Texture2D; private static tempTexture: Laya.Texture; /**截图 */ public static drawScreenshot(width, height, x, y) { if (!SwitchHelper.screenDraw) { return null; }  if (!this.tempTexture2D) { this.tempTextur...

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

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

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

106. timer无法执行 [ 64%]

...ball1mat: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial();   Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(layabox: Laya.Texture2D): void{ ball1mat.albedoTexture = layabox; })); //ball1mat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); ball1.meshRenderer.material...

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

107. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 64%]

...eBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(this, function(tex:Texture2D):void { material.albedoTexture = tex; })); box.meshRenderer.material = material; var monkey:Sprite3D = res.getChildByName("LayaMonkey") as Sprite3D...

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

108. 小游戏 使用3D 天空盒 真机无法显示 [ 64%]

...skyDome = new Laya.SkyDome(); camera.sky = skyDome; skyDome.texture = Laya.Texture2D.load("res/models/skyhome.jpg");小游戏 使用3D  天空盒 真机无法显示 就这三行代码 PC开发工具正常 真机测试 天空盒不显示 谢谢 麻烦看看呗 2018-04-08 添加评论 免费帖 --> ...

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

109. 场景本身有光照图,我替换光照图不起作用 [ 63%]

...身有光照图,我替换光照图不起作用 var mylightmap = new Laya.Texture2D.load("dimian02.jpg"); var mylightmaps = [mylightmap]; scene.setlightmaps(mylightmaps); 2017-06-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

110. 对象池3D问题 [ 63%]

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

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