大约有 911 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0053 秒)
Laya_社区(460) Laya2.0_示例(91) Laya_示例(88) Laya2.0_文档(74) Laya3.0_api(63) Laya2.0_api(58) laya_api(54) Laya3.0_文档(23)
...png",0,0,0,0,Laya.Handler.create(this,function() { console.log(sp.width,sp.height); })); Laya.stage.addChild(sp); loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 直接调用size设置: Laya.loader.load("res/apes/monkey2.png",Laya.Handler.create(this,function() { ...
来源: Laya3.0_文档 发布时间: 20251010
... - this.changeActionButton.width * Laya.Browser.pixelRatio / 2, Laya.stage.height - 100 * Laya.Browser.pixelRatio); this.changeActionButton.on(Laya.Event.CLICK, this, function (): void { this.playSkinAnimation(this.zombie, ++this.curStateIndex % this.skinAniUrl.length); }); })); } } new SkinAnimatio...
来源: Laya_示例 发布时间: 20251219
... 。。 赞同来自: sharedCanvas.width = width*pixelRatio; sharedCanvas.height = height*pixelRatio; sendMessage({ mission: Mission.RESIZE, width:width, height: height }); wx.onTouchStart(onTouchStart); wx.onTouchMove(onTouchMove); wx.onTouchEnd(onTouchEnd); wx.onTouchCancel(onTouchCancel); var...
来源: Laya_社区 发布时间: 20180426
... var bounds = ani.getGraphicBounds(); ani.scale(80/bounds.width ,80/bounds.height) 我想把特效设置为宽高都为80 80的 但是getGraphicBounds(); 有的特效获取出来的width和height 都为0 2017-06-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...
来源: Laya_社区 发布时间: 20170628
...同皮肤 public function LayaAirDemo() { Laya.init(Browser.width,Browser.height,WebGL);//初始化LayaAir引擎 Stat.show();//舞台左上角显示帧频信息 Laya.stage.bgColor='#EEFFCC';//设置舞台背景色 Laya.stage.alignH='center';//水平居中对齐 Laya.stage.alignV='middle';//垂直居...
来源: Laya_社区 发布时间: 20170324
... <div style="background:url(Face/img_duihua_qipao_green_02.png); height:100%; min-height:44px; width:400px; border-top-left-radius:20px; border-bottom-right-radius:20px; border-bottom-left-radius:20px; "> <span styl...
来源: Laya_社区 发布时间: 20170710
...nvas); rankSpr.graphics.drawTexture(rankTex, 5, 78, rankTex.width, rankTex.height); 排行的所有逻辑都是在子域项目里做的是吗,那如何从排行榜返回主游戏界面呢?子域应该是不能去调主域程序的吧。 2018-08-30 0 2 分享 微博 QZONE 微信 Laya_Aaron 赞同...
来源: Laya_社区 发布时间: 20180828
...oleMap = new Laya.Sprite(); this.RoleMap.size(Laya.stage.width, Laya.stage.height/2); Laya.stage.addChild(this.RoleMap); this.RoleMap.addChild(this.Role); this.Role.pivot(16,24);// 图片32x48 this.Role.pos(100, 200); Role.js基础代码: var Role = ( function ( _super ) { function Role () { Ro...
来源: Laya_社区 发布时间: 20181012
...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component filters : Array滤镜集合。可以设置多...
来源: laya_api 发布时间: 20170929
...始化了啊 在main里 Laya.init(GameConfig.STAGE_WIDTH, GameConfig.STAGE_HEIGHT, Laya.WebGL);
来源: Laya_社区 发布时间: 20171215