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

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

301. 文字在框内滑动、滚动文本 [ 76%]

...xt.x=Laya.stage.width-this.txt.width>>1;     this.txt.y=Laya.stage.height-this.txt.height>>1;     this.txt.borderColor="#ffff00";     this.txt.fontSize=20;     this.txt.color="#ffffff";     Laya.stage.addChild(this.txt);     this.txt.on(Laya.Event.MOUSE_DOWN, this, startScrol...

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

302. 怎样改变图片大小 [ 76%]

..._img.skin = "ui/bg.jpg"; this.bg_img.width = Laya.stage.width; this.bg_img.height = Laya.stage.height; Image使用skin修改显示,改变宽高时,会拉伸显示内容 2018-01-30 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 oy2419...

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

303. laya.display.Sprite [ 76%]

...口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite  height : Number 显示对象的高度,单位为像素,默认为0。 此高度用于鼠标碰撞检测,并不影响显示对象图像大小。需要对显示对象的图像进行缩放,请使用scale、scaleX、scaleY...

来源: laya_api 发布时间: 20170929

304. TiledMap.moveViewPort(x,y) 为嘛要传入负数 [ 76%]

....tMap.changeViewPort(-((Laya.stage.width-this.tMap.width)/2),-((Laya.stage.height-this.tMap.height)/2),this.tMap.width,this.tMap.height);         this.addChild(this.tMap.mapSprite()); 请问这是什么意思啊 2020-04-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

305. Sprite optimizeScrollRect = true 似乎有问题 [ 76%]

...ion () { this.mask = new Sprite(); this.mask.width = 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.c...

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

306. 骨骼动画-Spine事件 [ 76%]

...mFactory2; var mLabelSprite; (function(){ Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); mLabelSprite = new Sprite(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes6/alien.sk"; mFactory = new Templet(); mFactory.on(Event.COM...

来源: Laya_示例 发布时间: 20251219

307. laya.device.media.Video [ 76%]

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

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

308. 1.70beta Dialog增加动画后第二次执行popup不显示弹窗 [ 76%]

...= Laya.Handler; var WebGL = Laya.WebGL; var DIALOG_WIDTH = 220; var DIALOG_HEIGHT = 275; var CLOSE_BTN_WIDTH = 43; var CLOSE_BTN_PADDING = 5; var assets; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = St...

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

309. 和原生Dom交互 · LayaAir3.3 · 引擎文档 · LAYABOX [ 76%]

...果。 var data = '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' + '<foreignObject width="100%" height="100%">' + '<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:40px">' + '<em>I</em> like ' + '<span style="color:white; text-shadow: 0...

来源: Laya3.0_文档 发布时间: 20251010

310. loadImage加载资源的同时指定x,y和sprite对象指定x,y相同的值为什么结果不同 [ 76%]

...; ape.loadImage("../bin/res/images/2.png",(Laya.stage.width)/2,(Laya.stage.height)/2);   效果和 ape.x=(Laya.stage.width)/2; ape.y=(Laya.stage.height)/2;不同这是为什么? 2017-07-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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