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

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

81. 灯光-点光 [ 70%]

... camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); //点光源 var pointLight = scene.addChild(new Laya.PointLight()); pointLight.color = new Laya.Vector3(0.1189446, 0.5907708, 0.7352941); pointLight.transform.position = new Laya.Vector3(0.4, 0...

来源: Laya_示例 发布时间: 20251130

82. Unity导出的场景无法加载 [ 69%]

...llider.__proto._onAdded (libs/laya.d3.js:41745)     at Sprite3D.__proto._addComponentInstance (libs/laya.core.js:21498)     at Sprite3D.__proto.addComponent (libs/laya.core.js:21573)     at Function.Utils3D._createNodeByJson (libs/laya.d3.js:10690)     at Function.Utils3D._createNodeByJson (...

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

83. Sprite3D添加组件或脚本(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 69%]

...象的内容的基类。在给物体添加组件时,需要物体使用`addComponent`方法。 ![](img/1.png)(图1) **Script3D** 这是3D世界中的脚本,继承自组件,是组件的一种。该类被定义为 '抽象类' ,不允许实例。该类提供了一系列虚方法。详细使用可...

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

84. 网格像素线 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...Count: number = 2, name: string = null) { super(name); this._render = this.addComponent(PixelLineRenderer); this._geometryFilter = (this._render as PixelLineRenderer)._pixelLineFilter; (this._render as PixelLineRenderer).maxLineCount = maxCount; let material = this._render.material = new UnlitMateri...

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

85. 2D光遮挡器与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...Child(this.lightOccluder); let lightOccluderComponent = this.lightOccluder.addComponent(Laya.LightOccluder2D); lightOccluderComponent.canInLight = true; lightOccluderComponent.outside = true; let poly: Laya.PolygonPoint2D = new Laya.PolygonPoint2D(); // 添加多个顶点创建不规则形状(顺...

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

86. 灯光-聚光 [ 68%]

... camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); //聚光灯 var spotLight = scene.addChild(new Laya.SpotLight()); spotLight.color = new Laya.Vector3(1, 1, 0); spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); spotLight.directio...

来源: Laya_示例 发布时间: 20251130

87. [LayaAir3]Laya3.3废弃了filters,如何设置sprite滤镜,添加PostProcess2D,再给Process添加ColorEffect2D也不生效 [ 67%]

...    Laya.loader.load(url).then(()=>{         let spine = spirit.addComponent(Laya.Spine2DRenderNode)         spine.source = url;         spine.skinName = "default";         spine.play("idle", true);         spirit.postProcess = new Laya.PostProcess2D();         spi...

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

88. web版发布后,在浏览器运行报错 提示找不到 btCollisionObject_create [ 67%]

...bject_create')     at pi._onAdded (laya.d3.min.js:1:600219)     at xr._addComponentInstance (laya.core.min.js:1:250112)     at xr.addComponent (laya.core.min.js:1:251056)     at Mi._createComponentInstance (laya.d3.min.js:1:818164)     at Mi._createComponentInstance (laya.d3.min.js:1:81802...

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

89. 运行时网页黑屏,报错提示 [ 67%]

...给wall又添加了一次组件导致,将制作拐弯墙预制体的wall.addComponent(Wall)改为wallCurve.addComponent(Wall);另外在GameManager.js的spawnCurveWall方法内,instantiate复制对象内传入的参数拼写错误this.wallCurvePre没有,应该是改为this.wallCurve。 CubeLe...

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

90. 材质-BlinnPhong-高光贴图 [ 66%]

... camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); var directionLight = this.scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); var completeHand...

来源: Laya_示例 发布时间: 20251130