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

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

711. 多摄像机窗口的使用(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 49%]

...,代码如下: ```typescript //创建场景 var scene:Scene3D = Laya.stage.addChild(new Scene3D()) as Scene3D; //创建相机1 var camera1:Camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; //设置相机1清除颜色 camera1.clearColor = new Vector4(0.3, 0.3, 0.3, 1.0); camera1.transfo...

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

712. 没有预加载的图片怎么获取width和height ? [ 49%]

...();      older.loadImage("../laya/assets/comp/image.png");     Laya.stage.addChild(older);     console.log(older.scaleX,older.scaleY,older.rotation,older.x,older.y, older.width,older.height,older.getBounds().width,older.getBounds().height);      older.scale(2,2);     console.log(o...

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

713. 微信关系链:LayaAir引擎针对开发数据域使用图集支持介绍 [ 48%]

...x.b = tempMatrix.b; matrix.c = tempMatrix.c; matrix.d = tempMatrix.d; Laya.stage._canvasTransform = matrix;//重新设置矩阵 } }); } } } 具体使用例子,可以参考: 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 https://ask.layabox.com/question/15086 完...

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

714. 动效问题,没有 ui.TestPUI,官方文档错的,几年了至今无解答 [ 48%]

...sUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报错 Main.js:61 Uncaught ReferenceError: ui is not defined 之前有人提过这个问题,但一直都没有解答,也有人说要先注册class,但没...

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

715. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 48%]

...资源锁的) } /** * @private 加载场景,并且将该场景添加到stage上 */ loadScene() { Laya.Scene3D.load("res/threeDimen/scene/ParticleScene/Example_01.ls", Laya.Handler.create(this, function(scene){ this._scene = Laya.stage.addChildAt(scene, 0); var camera = scene.addChild(new Laya.Came...

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

716. 用unity插件导出lh格式文件,再代码中加载使用的问题 [ 48%]

...ll,function(sp:Scene3D):void{                 scene = Laya.stage.addChild(sp) as Scene3D;             }));   找到对应的示例代码了,但编译报错。。。。用的layaAir2.0   TypeError: Cannot read property 'btCollisionObject' of undefined bundle.js:6...

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

717. 3D场景环境设置 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...D.load('scene/Game.ls', Laya.Handler.create(null, function (res:any){ Laya.stage.addChild(res); })); //用Laya.loader的方式加载,加载后根节点Scene2D Laya.loader.load('scene/Game.ls', Laya.Handler.create(this, this.onLoaded), Laya.Handler.create(this, this.onLoading)).then( (res)=>{...

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

718. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 47%]

...资源锁的) } /** * @private 加载场景,并且将该场景添加到stage上 */ public function loadScene():void { Scene3D.load("res/threeDimen/scene/ParticleScene/Example_01.ls", Handler.create(this, function(scene:Scene3D):void { _scene = Laya.stage.addChildAt(scene, 0) as Scene3D; var camera...

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

719. convert3DCoordTo2DScreenCoord 当3dcamera有旋转的情况下,转换出来的坐标不正确 [ 47%]

...的情况下,转换出来的坐标不正确 _scene3d = new Scene(); Laya.stage.addChild(_scene3d); _camera3d = new Camera(0, 0.1, 300); _scene3d.addChild(_camera3d); _camera3d.transform.translate(new Vector3(0, 0, 150)); _camera3d.clearColor = null; _camera3d.orthographicProjection = true; _camera...

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

720. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 47%]

...资源锁的) } /** * @private 加载场景,并且将该场景添加到stage上 */ public loadScene():void { Laya.Scene3D.load("res/threeDimen/scene/ParticleScene/Example_01.ls", Laya.Handler.create(this, function(scene:Laya.Scene3D):void { this._scene = Laya.stage.addChildAt(scene, 0) as Laya.Sce...

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