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

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

421. 自适应问题 [ 71%]

...模式,屏幕铺满全屏。 问题二:你可以通过算Browser.clientHeight跟Broser.height来算出来! 2017-02-22 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 jacksing888 相关问题 发起问题须知,必看!!!不...

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

422. Panel中添加图片无法显示,文本可以 [ 71%]

...   var panel = new laya.ui.Panel();     panel.width = 500;     panel.height = 500;     panel.x = 200;     var label = new laya.ui.Label();     label.text = "fsadfsdfsdfsdfsdf";     label.color = "#ff0000";     label.fontSize = 40;     label.y = 50;     var label2 = new laya.ui.Lab...

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

423. list里面可以加入多个view吗? [ 71%]

...list:List; public function LayaAirDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { list=new List(); Laya.stage.addChild(list); list.itemRender=...

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

424. laya.utils.Utils [ 71%]

...Area(dom:Object, coordinateSpace:Sprite, x:Number, y:Number, width:Number, height:Number):void[static] 使DOM元素使用舞台内的某块区域内。 Utils  getGID():int[static] 获取一个全局唯一ID。Utils  getGlobalPosAndScale(sprite:Sprite):Rectangle[static] 计算传入的显示对...

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

425. Sprite设置mask属性为什么显示是透明的?怎样才能显示正常? [ 71%]

...ask.alpha = 0.3; mask.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); mask.on(Laya.Event.CLICK,this,chick);   function chick(){ mask.destroy(); gameContainer.destroy(); }   gameContainer.mask=mask; Laya.stage.addChild(gameContainer);  })();  })(); 附件 : --> 2020-06-03...

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

426. Laya下的图片上传示例(完整版) [ 71%]

...设置file样式 file.style="filter:alpha(opacity=0);opacity:0;width:200px;height:100px;background:url(b1.png) no-repeat center;cursor:pointer;"; file.type ="file";//设置类型是file类型。 file.size ="30"; file.accept="image/png/jpg";//设置文件的格式为png; file.style.position ="absol...

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

427. 在开放数据域/子域里list滑动事件偏移,重设矩阵没有用 [ 71%]

....sharedCanvas.width = message.data.width; Laya.Browser.window.sharedCanvas.height = message.data.height; var tempMatrix = message.data.matrix; var matrix = new Laya.Matrix(); matrix.a = tempMatrix.a; matrix.b = tempMatrix.b; matrix.c = tempMatrix.c; matrix.d = tempMatrix.d; Laya.stage._canvasTransfo...

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

428. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 71%]

...getSelfBounds() this.img.pivot(Math.round(rect.width / 2), Math.round(rect.height / 2)) let bound = this.img.getBounds() this.cacheCanvas = this.img.drawToCanvas(Math.ceil(bound.width), Math.ceil(bound.height), Math.round(bound.width / 2), Math.round(bound.height / 2)) this.cacheTexture = new Laya.T...

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

429. laya.particle.Particle2D_API3.0 [ 71%]

...lay autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize emitter filters globalRotation global...

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

430. laya.media.SoundNode_API3.0 [ 71%]

...url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY autoPlay blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globa...

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