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

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

161. 3D模型怎么删除?没回切换页面原来的模型都还在? [ 74%]

...his.scene); 3.新建模型,并且添加B页面的3D场景中 var map: Laya.Sprite3D = Laya.Sprite3D.load("cj/cj.lh"); this.scene.addChild(map);   4.切换页面 private playGame(): void { Laya.stage.removeChild(this.welcomePanel); this.gamePanel = new GamePanel();//不管是不是重新new的,模...

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

162. Laya截图3D场景相关模型,导致模型透视! [ 73%]

...thographic = true; camera.orthographicVerticalSize = 5; this.effRes = Laya.Sprite3D.load(resUrl); this.effRes.on(Laya.Event.HIERARCHY_LOADED, this, function(){ this.eff1 = scene.addChild( Laya.Sprite3D.instantiate(this.effRes)); this.eff1.transform.position = new Laya.Vector3(0,0,50); this.eff1.tran...

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

163. 3D中如何获取模型的世界旋转角度,不是localRotationEuler,不是四元数,是在世界中x,y,z轴上的旋转角度 [ 73%]

...与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: var a:Sprite3D = new Sprite3D();             a.transform.rotation; 2018-09-08 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 careylwq 相关问题 sprite旋...

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

164. VR的demo有没有加载3D场景的啊,实在不知怎么加 [ 73%]

...e = Laya.TextureCube.load("res/sky/skyCube.ltc"); camera.sky = skyBox; var sprite3D = scene.addChild(Laya.Sprite3D.load("cj03/LastHopeScene.lh")); //sprite3D.transform.localScale = new Laya.Vector3(0.2, 0.2, 0.2); sprite3D.once(Laya.Event.HIERARCHY_LOADED, null, function(sprite) { //console.log(scen...

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

165. as中BoxCollider引入了,但是运行的时候还是提示null [ 73%]

...信 bing8310124 赞同来自: 已解决! //仓库原型 var warehouse1:Sprite3D = scene.addChild(Sprite3D.load("model/warehouse/warehouse.lh")) as Sprite3D; warehouse1.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); warehouse1.transform.translate(new Laya.Vector3(-25,0,0),false); var wa...

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

166. 物理刚体(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 73%]

...script //新建一个球体模型并添加到舞台上 var sphere:Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createSphere(1))) as Laya.MeshSprite3D; //新建一个球形的碰撞盒 var sphereShape:Laya.SphereColliderShape = new Laya.SphereColliderShape(1); //给球添加...

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

167. 物理刚体(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 73%]

...`typescript //新建一个球体模型并添加到舞台上 var sphere:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createSphere(1))) as MeshSprite3D; //新建一个球形的碰撞盒 var sphereShape:SphereColliderShape = new SphereColliderShape(1); //给球添加刚体 var sphereRig...

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

168. 加载prefab的代码编译失败,提示“Property 'transform' does not exist on type 'Node'” [ 73%]

...的介绍,使用如下代码加载prefab资源,             Laya.Sprite3D.load("res/prefabs/Conventional/SampleScene.lh", Laya.Handler.create(null, function(sp)             {                 var layaMonkey2  = scene.addChild(sp);                 layaMonkey2.transform...

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

169. 请问LayaAirUnityPlugin 1.1.0.unitypackage导出的.lsani文件怎么使用? [ 73%]

...载代码,请问这样使用是否正确:     class ShuiPao extends Sprite3D {         constructor() {             super();             let mesh = Sprite3D.load('resources/shuipao.lh');             this.addChild(mesh);             mesh.on(Eve...

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

170. 版主紧急问题求助! [ 73%]

...题求助! 1.ts module A{   export var a:类;(类里面包含坐标、Sprite3D等变量) }   2.ts module A{   export function test(){     a = new a();     a.vector2 = new Vector2(100, 100);      a.加载() //Laya.loader.create 加载一个模型。 这个a类里面有回调方法     ...

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