• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0105 秒)

851. Sprite-容器 [ 89%]

....pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.timer.frameLoop(1, this, animate); } function animate(e) { apesCtn.rotation += 1; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; ...

来源: Laya_示例 发布时间: 20260303

852. RenderTexture 无法再image上显示 [ 89%]

RenderTexture 无法再image上显示     this.modelCamera.clearFlag = Laya.CameraClearFlags.SolidColor;           this.modelCamera.clearColor = new Laya.Vector4(0, 0, 0, 0);           this.modelCamera.renderTarget = new Laya.RenderTexture(512, 512, Laya.RenderTextureFormat.R8G8B8A8, La...

来源: Laya_社区 发布时间: 20220406

853. 其他方法都没有问题,只是在onUpdate里取不到this.pauseTime的值,谁帮忙看看? [ 89%]

其他方法都没有问题,只是在onUpdate里取不到this.pauseTime的值,谁帮忙看看? 其他方法都没有问题,只是在onUpdate里取不到this.pauseTime的值,谁帮忙看看? 附件 : --> 2018-10-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

来源: Laya_社区 发布时间: 20181020

854. Laya tiledmap 监听事件未响应 [ 89%]

...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

855. 性能分析插件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 89%]

...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

856. 如何获取实时更新的动态数据,数据在文本中 [ 89%]

... 运用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

857. panel的实际高度如何获取 [ 89%]

...在代码中,我如何知道这个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

858. 鼠标脚本(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 89%]

...节点和组件均已创建完毕,此方法只执行一次 */ onAwake(){ this.meshsp = this.owner as Laya.MeshSprite3D(); } //物体必须拥有碰撞组件(Collider) //当被鼠标点击 onMouseDown(e){ //console.log("点击到了我box",owner.name); //从父容器销毁我自己 this.owner.r...

来源: Laya2.0_文档 发布时间: 20210715

859. 关于MouseManger中检测鼠标坐标的问题 [ 89%]

...有问题的。具体表现在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

860. 求HTTP相关的文档或者例子谢谢了 [ 89%]

...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