大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0092 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...a.HitResult=new Laya.HitResult() 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.ge...
来源: Laya_社区 发布时间: 20190621
...a/Sound.ts:31 获取总时间。 Returns number Methods dispose dispose(): void Defined in laya/media/Sound.ts:38 释放声音资源。 Returns void event event(type: string, data?: any): boolean Inherited from EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parame...
来源: Laya3.0_api 发布时间: 20231115
...ew Handler(this,onRender); } private function onRender(cell:Box,index:int):void { // TODO Auto Generated method stub var cell:Box=my_list.getCell(index) as Box; var my_btn:Button=cell.getChildByName("my_btn") as Button; var my_clip:Clip=cell.getChildByName("my_clip") as Clip; my_btn.on(Event.CLICK,t...
来源: Laya_社区 发布时间: 20161030
...ete)); } /***加载资源完成***/ private onSkinLoadComplete(e:any=null):void { //创建水平滚动条 this.createHScroller(); } /***创建水平滚动条***/ private createHScroller():void { //实例化垂直滚动条 this.hScrollBar= new HScrollBar(); //加载皮肤资源(其他资源根据...
来源: Laya2.0_文档 发布时间: 20210715
...ete)); } /***加载资源完成***/ private onSkinLoadComplete(e:any=null):void { //创建垂直滚动条 this.createVScroller(); } /***创建水平滚动条***/ private createVScroller():void { //实例化垂直滚动条 this.vScrollBar= new VScrollBar(); //加载皮肤资源(其他资源根据...
来源: Laya2.0_文档 发布时间: 20210715
... private var imag:Image; private function onComplet():void { imag=new Image("ui/comp/image.png"); Laya.stage.addChild(imag); imag.on(Event.MOUSE_DOWN,this,onDown); imag.on(Event.MOUS...
来源: Laya_社区 发布时间: 20170510
...reate(this, this.onCheckBoxSkinLoaded)); } private onCheckBoxSkinLoaded(): void { var cb: CheckBox; for (var i: number = 0; i < this.COL_AMOUNT; ++i) { for (var j: number = 0; j < this.ROW_AMOUNT; ++j) { cb = this.createCheckBox(this.skins[i * this.ROW_AMOUNT + j]); cb.selected = true; cb.x = this.H...
来源: Laya2.0_示例 发布时间: 20260303
...); //加载墙面 this.loadwall(); this.loopShoot(); } public loopShoot(): void{ Laya.timer.loop(1000, this, this.shootBall); } public shootBall(): void{ //生成空中降落的球 //var random: number = Math.random()*24-7; let ball: Laya.MeshSprite3D = new Laya.MeshSprite3D(Laya.PrimitiveMesh.cr...
来源: Laya_社区 发布时间: 20190506
... private isMove : boolean ; onMouseDown(e : laya.events.Event):void{ console.log("MOUSE_DOWN"); this.on(laya.events.Event.MOUSE_MOVE ,this, this.onMouseMove); this.onMouseDownX = e.target.mouseX; this.onMouseDownY = e.target.mouseY; ...
来源: Laya_社区 发布时间: 20160823
...reate(this, this.onCheckBoxSkinLoaded)); } private onCheckBoxSkinLoaded(): void { var cb: CheckBox; for (var i: number = 0; i < this.COL_AMOUNT; ++i) { for (var j: number = 0; j < this.ROW_AMOUNT; ++j) { cb = this.createCheckBox(this.skins[i * this.ROW_AMOUNT + j]); cb.selected = true; cb.x = this.H...
来源: Laya_示例 发布时间: 20260303