大约有 4,101 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0078 秒)
Laya_社区(3322) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...edMap: Laya.TiledMap /** */ private onLost() { this.tiledMap = new Laya.TiledMap(); this.tiledMap.createMap("resource/tiledMap/isometric_grass_and_water.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this, this.mapLoaded), nu...
来源: Laya_社区 发布时间: 20220929
...mber = 23; private perfMain: LayaPerf = new LayaPerf(); onEnable(): void { this.perfMain.init(this.projectId); } } projectId使用后端给项目分配的项目id,如图1-3所示,在后端界面可以看到id的值。 (图1-3) 二、工具的使用 2.1 录制 性能分析插件是用于运...
来源: Laya3.0_文档 发布时间: 20251010
... 运用frameloop重复执行加载文本资源函数Laya.stage.frameLoop(1,this,this.Repeat,null,true);这是加载资源的函数内的代码loadPosition():void{ /* let resArray:Array<any>=[ {url:"eyeimf.txt",type:Laya.Loader.TEXT} ] Laya.loader.load(resArray,Laya.Handler.create(this,this.Onl...
来源: Laya_社区 发布时间: 20171227
...在代码中,我如何知道这个panel的显示区域的实际高度 this.panelList.contentHeight? this.panelList.height? this.panelList.displayHeight? this.panelList.viewport? this.panelList.scrollRect? this.panelList.getBounds()? this.panelList.getSelfBounds()? 附件 : --> 201...
来源: Laya_社区 发布时间: 20180814
...节点和组件均已创建完毕,此方法只执行一次 */ onAwake(){ this.meshsp = this.owner as Laya.MeshSprite3D(); } //物体必须拥有碰撞组件(Collider) //当被鼠标点击 onMouseDown(e){ //console.log("点击到了我box",owner.name); //从父容器销毁我自己 this.owner.r...
来源: Laya2.0_文档 发布时间: 20210715
...有问题的。具体表现在MouseManger.initEvent中的两行代码: this._point.setTo(e.pageX || e.clientX,e.pageY || e.clientY); this._stage._canvasTransform.invertTransformPoint(this._point); 问题1: 如果包含canvas的div并不是充满整个document.body,且div本身可以滚动(ca...
来源: Laya_社区 发布时间: 20170701
...on(e){} __proto__.checkList=function(){ this.publicloader=new URLLoader(); this.publicloader.dataFormat=/*iflash.net.URLLoaderDataFormat.VARIABLES*/"variables"; this.publicloader.addEventListener(/*iflash.events.Event.COMPL...
来源: Laya_社区 发布时间: 20151217
...ure(); onAwake(): void { //获取场景中要添加视频纹理的3D节点 this.videoPlane = this.scene.getChildByName("Plane") as Laya.Sprite3D; //使用指定路径的视频文件 this.createVideo("resources/mov_bbb.mp4"); } //创建视频纹理并将其应用到Sprite3D上 private createVideo(url...
来源: Laya3.0_文档 发布时间: 20251010
LayaBox编译器BUG 对于匿名函数的编译 this不会被替换为_$this 举例 Handler.create(this,function(){this.name="test"}); 这个函数里边的this不会被替换为_$this 2017-11-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20171122
...aya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; this.createCantralRect(); } private createCantralRect(): void { this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } private updateRectPo...
来源: Laya_示例 发布时间: 20251218