大约有 791 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0079 秒)
Laya_社区(418) Laya_示例(77) Laya3.0_api(64) Laya2.0_示例(64) Laya2.0_api(58) laya_api(53) Laya2.0_文档(42) Laya3.0_文档(15)
...(); 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
...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
...资源锁的) } /** * @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
...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
...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
...的情况下,转换出来的坐标不正确 _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
...资源锁的) } /** * @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
...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
...资源锁的) } /** * @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
...Users\Administrator\AppData\Roaming\npm\node_modules\.staging 31936 timing stage:rollbackFailedOptional Completed in 3367ms 31937 timing stage:runTopLevelLifecycles Completed in 192968ms 31938 warn notsup Unsupported engine for got@5.7.1: wanted: {"node":">=0.10.0 <7"} (current: {"node":"12.13...
来源: Laya_社区 发布时间: 20200211