大约有 787 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0058 秒)
Laya_社区(413) Laya_示例(77) Laya3.0_api(64) Laya2.0_示例(64) Laya2.0_api(58) laya_api(53) Laya2.0_文档(42) Laya3.0_文档(16)
...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
...资源锁的) } /** * @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
...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_文档 发布时间: 20241014
...g"]; // 计算将Button至于舞台中心的偏移量 this.xOffset = (Laya.stage.width - this.HORIZONTAL_SPACING * (this.COLUMNS - 1) - this.BUTTON_WIDTH) / 2; this.yOffset = (Laya.stage.height - this.VERTICAL_SPACING * (this.skins.length / this.COLUMNS - 1) - this.BUTTON_HEIGHT) / 2; Laya.loader.lo...
来源: Laya3.0_文档 发布时间: 20241014
...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
...his,onSendClick1); // enter键发送默认字体或输入框内字体 Laya.stage.on(Event.KEY_DOWN,this,onKeyDown); } private function onKeyDown(e:Event):void { // 当按下enter健自动发送文字 if(e.keyCode==13) { change(str); } } // 发送文字样式二,如果input有值的话,发送inpu...
来源: Laya_社区 发布时间: 20170107
...andler.create(null, this.__onLoaded)); } private __onLoaded(): void { Laya.stage.addChild(new Test()); } } new Entry(); Test.ts import Sprite = Laya.Sprite; class Test extends Sprite{ constructor(){ super(); this._initView(); } private _initView():void { let sprite:Sprite = new Sprite(); sprite =...
来源: Laya_社区 发布时间: 20180308
...; constructor() { super(); //添加3D场景 var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; this.scene3d = scene; //添加照相机 var camera: Laya.Camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera; camera.transform.translate(new Laya.Vector3(...
来源: Laya_社区 发布时间: 20190618