大约有 377 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0040 秒)
Laya_社区(160) Laya3.0_api(70) Laya2.0_api(62) laya_api(59) Laya_示例(9) Laya2.0_文档(8) Laya2.0_示例(7) Laya3.0_文档(2)
...时长。 */ public function startDrag(area:Rectangle = null, hasInertia:Boolean = false, elasticDistance:Number = 0, elasticBackTime:int = 300, data:* = null, disableMouseEvent:Boolean = false, ratio:Number = 0.92):void { 2018-05-02 0 2 分享 微博 QZON...
来源: Laya_社区 发布时间: 20180428
...WebGL下会出现此问题,Canvas下正常显示 img.scrollRect = new Rectangle(0, 0, 150, 250); 如果img的父级容器(或者父父。。。级)scaleX设置为-1,就会导致此问题 demo见附件 附件 : --> testUI5.rar 2017-08-02 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20170802
...):void 用texture填充。 Graphics getBounds(realSize:Boolean = false):Rectangle 获取位置及宽高信息矩阵(比较耗CPU,频繁使用会造成卡顿,尽量少用)。 Graphics loadImage(url:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Function = ...
来源: laya_api 发布时间: 20170929
...p" //rendertarget要限制一下大小 要混合的图层.scrollrect = new Rectangle(0,0,browser.clientWidth,browser.clientHeight); 2017-12-23 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 yan4234043 相关问题 看了其他引擎才...
来源: Laya_社区 发布时间: 20170120
一个动画我想设置它的大小该怎么取设置啊 rec = new Laya.Rectangle(0,0,100,100) ani.setBounds(rec) var bounds = ani.getGraphicBounds(); ani.scale(100/bounds.width,100/bounds.height) 我想把动画宽高都设置成100 100 可是这2种方法都不能实现 该怎么去...
来源: Laya_社区 发布时间: 20170629
... this.map = new Laya.TiledMap(); this.map.createMap(this.MAP_URL, new Laya.Rectangle(0,0,Laya.stage.width, Laya.stage.height), new Laya.Handler(this, this.onMap)) } private onMap(){ var idx = this.map.getLayerByIndex(0).getTileDataByScreenPos(20,20); var pass = this.map.getTileProperties(0,idx - 1...
来源: Laya_社区 发布时间: 20190218
...答 Laya.Physics.I.worldRoot = this.road; this.road.scrollRect = new Laya.Rectangle(0, 100, this.width, this.height); 2020-10-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 layabox 赞同来自: 物理辅助线...
来源: Laya_社区 发布时间: 20201011
... = new Laya.TiledMap(); this.tiledMap.createMap("desert.json", new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Laya.Handler.create(this,this.loadedMap)); } loadedMap(){ this.sp=new Laya.Sprite(); this.sp.graphics.drawRect(0,0,100,100,"#FF0000"); var mapLayer = this.t...
来源: Laya_社区 发布时间: 20171125
...prite; Laya.Physics.I.worldRoot = self.gameObj; this.cameraRect = new Laya.Rectangle(0, 0, 2000, 1000); this.gameObj.scrollRect = this.cameraRect; } onUpdate() { this.cameraRect.x = this.target.x - 400; this.cameraRect.y = this.target.y - 400; } 2020-08-13 0 0 分享 微博 QZONE 微信 为什么被...
来源: Laya_社区 发布时间: 20190214
...h = this.width; this.mask.height = this.height; this.mask.scrollRect = new Rectangle(); this.mask.scrollRect.setTo(0, 0, this.width, this.height); this.mask.optimizeScrollRect = true; this.addChild(this.mask); } this.initContent = function () { this.content = new Box(); this.content.width = this.wid...
来源: Laya_社区 发布时间: 20161118