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

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

171. 在Unity中设置动画事件(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 55%]

...ChildByName("Cube"); //添加组件(脚本) var _script:SceneScript = cube.addComponent(SceneScript); //label用于显示 var _lab:Label = new Label(); _lab.text = "test"; _lab.height = 100; _lab.width = 100; _lab.fontSize = 40; _lab.pos(200,200); Laya.stage.addChild(_lab); //给脚本的加强表...

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

172. laya2.0版本支持MeshColliderShape吗 [ 55%]

...ChildByName("GameObject").getChildByName("dimian_5"); let rigidBody = sp3d.addComponent(Laya.Rigidbody3D) let shape = new Laya.MeshColliderShape() shape.mesh = sp3d.meshFilter.sharedMesh; rigidBody.colliderShape = shape;  laya.physics3D.js:304 Uncaught TypeError: Cannot read property '__destroy__' ...

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

173. laya2.8.0 Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 [ 55%]

...移动。100%重现(所以不传工程了),代码如下: let rig = obj.addComponent(Laya.CannonRigidbody3D); let shape = new Laya.CannonBoxColliderShape(0.2, 0.2, 0.2); shape.localOffset = new Laya.Vector3(0, -0.1, 0); rig.colliderShape = shape; rig.isKinematic = true; 附件 : --> 2021-03-30 ...

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

174. 720 全景图 手指滑动 滑动距离 [ 55%]

...0), true, false); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; camera.addComponent(CameraMoveScript); var skyBox = new Laya.SkyBox(); camera.sky = skyBox; skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyCube.ltc"); 以上是官方给出的例子,那么有两个问...

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

175. 新手的伤,ReferenceError: CameraMoveScript is not defined [ 55%]

...new Laya.Vector4(0, 0, 0.6, 1); //加入摄像机移动控制脚本 camera.addComponent(CameraMoveScript); //创建方向光 ------------------- var light = scene.addChild(new Laya.DirectionLight()); //移动灯光位置 light.transform.translate(new Laya.Vector3(0, 2, 5));                 ...

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

176. 发布微信小游戏运行错误,Class constructor xx cannot be invoked without 'new' [ 54%]

...t3D{ }   如xxx是一个3D节点,代码里执行: let script:Test = xxx.addComponent(Test);   在web端没问题,在微信开发者工具里运行报错,已上传Demo项目 附件 : --> IdleDemo.zip 2020-03-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

177. 加载不了模型 [ 54%]

...      camera.clearColor = Laya.Vector3(255,255,0.1);         camera.addComponent(CameraMoveScript);         //添加方向光         var directionLight = scene.addChild(new Laya.DirectionLight());         directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6);         directi...

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

178. 3D加载不了 [ 54%]

...      camera.clearColor = Laya.Vector3(255,255,0.1);         camera.addComponent(CameraMoveScript);         //添加方向光         var directionLight = scene.addChild(new Laya.DirectionLight());         directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6);         directi...

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

179. ReferenceError: Laya3D is not defined? [ 54%]

...Laya.Camera = scene.getChildByName("Main Camera") as Laya.Camera; //camera.addComponent(CameraMoveScript); })); 2019-03-08 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要...

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

180. laya.d3.core.light.PointLight_API3.0 [ 54%]

...orm url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener is...

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