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

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

811. stage.height获取高度有bug吗 [ 68%]

...感谢@mengjia @zq4950411 解答 根据@mengjia 的建议使用SCALE_FIXED_WIDTH来适配,并配合相对布局,轻松解决了我的需求(代码见上图) 2018-03-12 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Blueria 相关...

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

812. 用iframe内嵌网页及适配 [ 68%]

...ntsByTagName("body")[0]; body.appendChild(iframe); //适配处理 var frameWidth = 720 * Laya.stage.clientScaleX; var frameHeight = 1280 * Laya.stage.clientScaleY; var styleStr = "position: absolute; left: {0}px; top: {1}px; z-index: 100009;";//laya 的index是100000 var str = styleStr.format((laya....

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

813. 微信小游戏渲染开放域卡顿处理 [ 68%]

...am?: any): void {             var self = this;             var width = self.width;             var height = self.height;             var data = {                 view: self.$viewName,                 width: width,                 height: height     ...

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

814. 1.5.0 LayaAir IDE发布UI资源缺失! [ 68%]

...      ['uiView',function(){return this.uiView={"type":"View","props":{"width":600,"height":400}};}         ]);         return ABCPanelUI;     })(View); var TestPageUI=(function(_super){         function TestPageUI(){                          TestPageUI.__su...

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

815. laya.ui.View_API3.0 [ 68%]

...Through name tag drawtocanvCtx unDestroyedScenes Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation glob...

来源: Laya3.0_api 发布时间: 20231115

816. Laya2.4版本,场景为内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 68%]

...I extends Laya.Scene { public static uiView:any ={"type":"Scene","props":{"width":720,"height":1280},"compId":2,"child":[{"type":"Button","props":{"y":616,"x":296,"skin":"comp/button.png","name":"butStart","label":"label"},"compId":3}],"loadList":["comp/button.png"],"loadList3D":[]}; constructor(){ ...

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

817. list中加的button不能接收点击事件 求一个list中加button的demo [ 67%]

...      }         let list = new Laya.List;         list.width = this.itemList.width;         list.height = this.itemList.height;         list.x = this.itemList.x;         list.y = this.itemList.y;         list.spaceY = 12;         list.vScrollBarS...

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

818. laya2.3图集含空白裁切后,锚点旋转bug,demo重现 [ 67%]

...反而是对的,这按理是bug吧         // sp3.pos(Laya.stage.width/2,0);         Laya.stage.addChild(sp3);         Laya.timer.frameLoop(2,null,function()             {                 sp3.rotation = sp3.rotation+10;             } ...

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

819. Laya2.4版本,场景为内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 67%]

...{         public static  uiView:any ={"type":"Scene","props":{"width":720,"height":1280},"compId":2,"child":[{"type":"Button","props":{"y":616,"x":296,"skin":"comp/button.png","name":"butStart","label":"label"},"compId":3}],"loadList":["comp/button.png"],"loadList3D":[]};        ...

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

820. laya.ui.UIComponent [ 67%]

...read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalRotation : Number[read-only] ...

来源: Laya2.0_api 发布时间: 20190513