大约有 67 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0046 秒)
... self.owner.addChild(scene3d); var lv = scene3d.getChildByName("--- GAMEPLAY ---").getChildByName("Levels Parent"); // Laya.Sprite3D.load("res/prefabs/Conventional/prefabs.lh", Laya.Handler.create(null, function (sp) { ...
来源: Laya_社区 发布时间: 20220506
...(scene); //添加方向光 var directionlight: Laya.DirectionLight = scene.getChildByName( "Directional Light" ) as Laya.DirectionLight; this.directionlight = directionlight; //加入子層人物腳色到舞台 var littleGirl: Laya.Sprite3D = scene.getChildByName( "Girl" ) as Laya.Sprite3D; scene.ad...
来源: Laya_社区 发布时间: 20200917
... this.scene3D = this.owner as Scene3D; this.basketballCourt = this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(PhysicsCollider); collision.restitution = 0.1; this.ball = this.scene3D.getCh...
来源: Laya_社区 发布时间: 20200512
... this.scene3D = this.owner as Scene3D; this.basketballCourt = this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(PhysicsCollider); collision.restitution = 0.1; this.ball = this.scene3D.getCh...
来源: Laya_社区 发布时间: 20200515
...(); Laya.stage.addChild(this._scene); var camera:Laya.Camera = this._scene.getChildByName("Main Camera") as Laya.Camera; camera.addComponent(CameraMoveScript); var tiger:Laya.Sprite3D = this._scene.getChildByName("tiger_idle") as Laya.Sprite3D; console.log(tiger); var animator:La...
来源: Laya_社区 发布时间: 20180317
...) physics:Laya.PhysicsSimulation; onAwake():void{ this.camera = this.owner.getChildByName("Main Camera") as Laya.Camera; let scene: Laya.Scene3D = this.owner.scene as Laya.Scene3D; this.physics=scene.physicsSimulation; console.log("相机位置",(this.owner.getChildByName("Main Camera") as ...
来源: Laya_社区 发布时间: 20190621
...// 预加载loadPage let loadPage = new LoadPage() loadPage.preload() this.getChildByName('text').on(Laya.Event.CLICK, this, function () { // 切换打开场景方式 查看效果不同 loadPage.openScene('page2.scene', this.getUserInfo, true, [1, 2, 3]) // loadPage.openScene2('page2.scene', this.ge...
来源: Laya_社区 发布时间: 20181124
...更改单元格属性 var hero:Image = cell.getChildByName("hero")as Image;//根据名字查找要更改的单元格 hero.disabled = HostData.array[index].hero;//属性更改 var ani :Animation = cell.getChildByN...
来源: Laya_社区 发布时间: 20180503
...er.parent as Laya.Scene3D; this._text = this._scene.parent.getChildByName("ceshi") as Laya.Text; this._camera = this._scene.getChildByName("camera") as Laya.Camera; } onUpdate(){ var touchCount = this._scene.input.touchCount(); if (1 === touchCount){ ...
来源: Laya_社区 发布时间: 20190531
...VideoNode不支持在微信浏览器中播放 let videoNode = this.owner.getChildByName("VideoNode") as Laya.VideoNode; videoNode.source = 'xxx.mp4'; videoNode.play(); // 上面代码在PC端安卓苹果等自带浏览器支持视频播放,但是在微信浏览器无任何显示。 let mat = new L...
来源: Laya_社区 发布时间: 20230825