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

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

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

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

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

92. 像素线 · LayaAir3.0文档 · 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_文档 发布时间: 20240624

93. 灯光-聚光 [ 67%]

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

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

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

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

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

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

96. 材质-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_示例 发布时间: 20241001

97. 材质-PBRStandard材质 [ 65%]

...is, function () { var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyBox = new Laya.SkyBox(); camera.sky = skyBox; skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox1/skyCube.lt...

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

98. 自定义shader-简单shader [ 65%]

..., 100)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1.5)); camera.addComponent(CameraMoveScript); var layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm"))); layaMonkey.transform.localScale =...

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

99. 基于Cannon.js的物理系统(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 64%]

...2.为精灵添加CannonRigidbody3D组件 ```typescript var rigidBody = box.addComponent(CannonRigidbody3D); ``` - 3.设置碰撞器形状 ```typescript //创建盒子形状碰撞器 var boxShape = new CannonBoxColliderShape(sX, sY, sZ); //设置盒子的碰撞形状 rigidBody.colliderShape = boxShap...

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

100. CharacterController [ 63%]

...同来自: 给物体添加角色控制器   Playercontroller = ballobj.addComponent(Laya.CharacterController);//添加角色控制器 Playercontroller.move(new Laya.Vector3(-1,0,-1)); //ballobj 是我的3d物体 运行也是报这个错   2019-04-09 0 0 分享 微博 QZONE 微信 为什么被折...

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