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

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

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

812. laya.ui.View_API3.0 [ 67%]

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

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

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

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

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

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

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

818. hitTestPrior点击穿透 [ 67%]

...tPrior window[`hitTestPrior`] = () => { let box1 = new Laya.Box(); box1.width = box1.height = 500; let sp = new Laya.Sprite(); sp.graphics.drawRect(0, 0, box1.width, box1.height, `#999900`); box1.addChild(sp); box1.clickHandle = () => { lizheng.log(`点击了box1`); } box1.hitTestPrior = false...

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

819. 微信小游戏,获取Laya.stage的宽高问题。 [ 67%]

...le.log("Laya.stage.height = ", Laya.stage.height); console.log("Laya.stage.width = ", Laya.stage.width);在加载完资源后,我打印了stage的宽高。在测试的时候,有一些机子出了问题。 正常的,安卓机测试 不正常,iphone7 ,用其他苹果手机测试也是行的。...

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

820. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 67%]

...new Laya.Sprite() _fish.graphics.drawRect(this.are.x, this.are.y, this.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_...

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