大约有 425 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
Laya_社区(160) Laya3.0_api(79) Laya2.0_api(73) Laya2.0_文档(53) Laya_示例(28) laya_api(14) Laya3.0_文档(13) Laya2.0_示例(5)
... 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
...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
...象的内容的基类。在给物体添加组件时,需要物体使用`addComponent`方法。 (图1) **Script3D** 这是3D世界中的脚本,继承自组件,是组件的一种。该类被定义为 '抽象类' ,不允许实例。该类提供了一系列虚方法。详细使用可...
来源: Laya2.0_文档 发布时间: 20210714
...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
...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
... 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
... 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
...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
...给wall又添加了一次组件导致,将制作拐弯墙预制体的wall.addComponent(Wall)改为wallCurve.addComponent(Wall);另外在GameManager.js的spawnCurveWall方法内,instantiate复制对象内传入的参数拼写错误this.wallCurvePre没有,应该是改为this.wallCurve。 CubeLe...
来源: Laya_社区 发布时间: 20220325
... 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