大约有 2,280 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0059 秒)
Laya_社区(1494) Laya2.0_文档(259) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(80) Laya2.0_api(74) laya_api(70) Laya3.0_文档(64)
...数据 Stat.show(); // 给舞台添加laya3d场景 var scene= Laya.stage.addChild(new Scene()) as Scene; //初始化照相机 var camera = scene.addChild(new Camera()) as Camera; camera.transform.position = new Vector3(0, 3, 3); camera.transform.rotate(new Vector3( -45, 0, 0), true, false); camera.a...
来源: Laya_社区 发布时间: 20170314
... () { //创建背景 this.spBg = Sprite.fromImage(this.PathBg); Laya.stage.addChild(this.spBg); //创建动画 this.aniFly = new Animation(); this.aniFly.loadAtlas(this.PathFly); this.aniFly.play(); this.aniFly.pos(250, 100); Laya.stage.addChild(this.aniFly); //创建按钮 this.btn = new Sprite().s...
来源: Laya_示例 发布时间: 20241117
...enMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); this.scene = Laya.stage.addChild(new Laya.Scene()); var camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 1000))); camera.transform.translate(new Laya.Vector3(0, 0.7, 1.3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); came...
来源: Laya_示例 发布时间: 20241117
...GameStartUI(); start.btn_start.on(Event.MOUSE_UP,this,gameInit) Laya.stage.addChild(start); } function gameInit() { map = new GameBgUI(); Laya.stage.addChild(map); play = new GamPlayUI(); Laya.stage.addChild(play); hero = new Hero("hero", 25) hero.pos(100,200) Laya.stage.addChild(hero) Laya.timer.on...
来源: Laya_社区 发布时间: 20180911
...enMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); this.scene = Laya.stage.addChild(new Laya.Scene()); var camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 0.6, 1.1)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); var d...
来源: Laya_示例 发布时间: 20241117
...sX = 250, startPosY = 450; let ground = new Laya.Sprite(); Laya.Laya.stage.addChild(ground); let groundBody = new Laya.RigidBody(); groundBody.type = "static"; ground.addComponentIntance(groundBody); let chainCollider = ground.addComponent(Laya.ChainCollider); chainCollider.points = "50,600,1050,600...
来源: Laya2.0_示例 发布时间: 20241117
...at.show(); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 10000))); camera.transform.translate(new Laya.Vector3(0, 5, 5)); camera.transf...
来源: Laya_社区 发布时间: 20180427
...at.show(); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 10000))); camera.transform.translate(new Laya.Vector3(0, 5, 5)); camera.transf...
来源: Laya_社区 发布时间: 20180427
...on2 = new Sprite(); _con3 = new Sprite(); _con4 = new Sprite(); Laya.stage.addChild(_con1); Laya.stage.addChild(_con2); Laya.stage.addChild(_con3); Laya.stage.addChild(_con4); _p1 = new UI1(); _p2 = new UI2(); ShowHide(); } private function ShowHide():void { if (c % 2 == 0) { _con3.addChild...
来源: Laya_社区 发布时间: 20181025
...景。 selectBox.height = 32; selectBox.x = 13; selectBox.left = 12; this.addChild(selectBox); var folder = new Clip("../../res/ui/tree/clip_tree_folder.png", 1, 3); folder.name = "folder"; //设置 folder 的name 为“folder”时,将被识别为树结构的文件夹开启状态图表。2帧:...
来源: Laya_示例 发布时间: 20241117