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

大约有 191 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)

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

...ector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.4); directionLight.direction = new Laya.Vector3(1, -1, -1); Laya.Stat.show(0,30) var box = scene.addChild(new Lay...

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

162. 关于平行光渲染投影问题,求解惑 [ 46%]

....Vector3(0,0,0),new Laya.Vector3(0,1,0)); //创建方向光 var light:Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; //移动灯光位置 light.transform.translate(new Laya.Vector3(-5,10,-5)); //设置灯光方向 light.direction = new Laya.Vector3(1, -1, 1);...

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

163. 性能测试-虫子(慎入) [ 46%]

...} } } import laya.display.Sprite; class Maggot extends Sprite { public var direction:Number; public var turningSpeed:Number; public var speed:Number; public var offset:Number; }

来源: Laya2.0_示例 发布时间: 20251130

164. 问下,3D模型导出有什么要求 [ 46%]

...是场景中没有光照,物体的环境光颜色是不会显示的! var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.ambientColor = new Vector3(0.6, 0.6, 0.6); directionLight.specularColor = new Vector3(0.6, 0.6, 0.6); directionLight.diffu...

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

165. Cannot read property 'rayCast' of undefined [ 45%]

...rue, false); //3.清除照相机颜色 this.camera.clearColor = null; this.directionLight = new Laya.DirectionLight(); this.scene.addChild(this.directionLight); this.directionLight.direction = new Laya.Vector3(0, -0.8, -1); this.directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); Laya.Sprite3D.l...

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

166. 官方LayaAir之灯光一节示例背景在微信里表现不一致 [ 44%]

...w Laya.Vector3( -30, 0, 0), true, false); //创建方向光 var light:Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; //移动灯光位置 light.transform.translate(new Laya.Vector3(0,5,0)); //设置灯光方向 light.direction = new Laya.Vector3(0.3, -1, 0); ...

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

167. 组件装饰器说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

...景根节点类型 private scene3D: Laya.Scene3D; @property( { type:Laya.DirectionLightCom } ) //DirectionLight组件类型 private directionLight: Laya.DirectionLightCom; @property( { type:Laya.Sprite3D } ) //Sprite3D节点类型 private cube: Laya.Sprite3D; @property( { type:Laya.Prefab } ) //加...

来源: Laya3.0_文档 发布时间: 20251010

168. 滚动支持 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...否装配滚动条不影响正常的滚动功能。 一、编辑器操作 Direction 滚动方向。 Vertical 垂直。 Horizontal 水平。 Both 同时支持垂直和水平两个方向。 Bar Display 滚动条显示选项。 Default 使用默认值。默认值是UIConfig2.defaultScrollBarDisplay。 ...

来源: Laya3.0_文档 发布时间: 20251010

169. laya.ui.RadioGroup_API3.0 [ 41%]

...cacheAs centerX centerY components customRenderEnable dataSource destroyed direction disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D items labelBold labelColors labelFont labelPadding l...

来源: Laya3.0_api 发布时间: 20231115

170. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 41%]

...)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1); //加载网格 var layaMonkey = scene.addChild(new La...

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