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

大约有 904 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0062 秒)

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

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

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

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

425. 在开放数据域/子域里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

426. 在开启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

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

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

429. laya.map.GridSprite_API3.0 [ 71%]

...ation mouseThrough name relativeX relativeY tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX g...

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

430. laya.map.GridSprite [ 71%]

...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite  drawImageNum : ...

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