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

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

401. 【解决】富文本html下划线换行bug [ 69%]

...; graphic.drawLine(words[0].x,firstlineY,words[slsIndex].x+words[slsIndex].width,firstlineY,color,1); let secondLineY = words[slsIndex+1].y + words[slsIndex+1].height; graphic.drawLine(words[slsIndex+1].x,secondLineY,lastWords.x+lastWords.width,secondLineY,color,1); }else{ graphic.drawLine(words[0]....

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

402. laya.display.Animation [ 69%]

...read-only] 对象的显示高度(以像素单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite  frames : Array 当前动画的帧...

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

403. Spine适配版(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 69%]

...private var index: Number = -1; public function Main() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } private function startFun(): void { this.templet = new SpineTempletBinary(); this.temp...

来源: Laya2.0_文档 发布时间: 20210715

404. 动态加载代码后,总是出现 ProgressBar is not a constructor [ 68%]

...ete() { pBar = new ProgressBar(AssetsDir+"./assets/progressBar.png"); pBar.width = Laya.stage.width/2;//400; pBar.x = (Laya.stage.width - pBar.width) / 2; pBar.y = Laya.stage.height / 2; 。。。 }这是 progressBar 资源加载完毕之后,构造progressBar的脚本。 总是在这里出现错...

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

405. .ui画界面关于屏幕尺寸变化时内容如何居中 [ 68%]

...自: 你在代码中添加这个UI页面的时候就让它的x=(Laya.sta.width-this.width)/2自己计算下不就好么 2018-03-23 0 2 分享 微博 QZONE 微信 什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 kaiqiw945 相关问题 【屏幕适配】在LayaAir上面...

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

406. laya.map.TiledMap [ 68%]

... TiledMap  gridHeight : Number[read-only] 块的高度 TiledMap  gridWidth : Number[read-only] 块的宽度 TiledMap  height : int[read-only] 地图的高度 TiledMap  numColumnsGrid : Number[read-only] 地图的横向块数 TiledMap  numColumnsTile : int[read-only] 地图横向的格子...

来源: laya_api 发布时间: 20170929

407. laya.map.TiledMap [ 68%]

... TiledMap  gridHeight : Number[read-only] 块的高度 TiledMap  gridWidth : Number[read-only] 块的宽度 TiledMap  height : int[read-only] 地图的高度 TiledMap  numColumnsGrid : Number[read-only] 地图的横向块数 TiledMap  numColumnsTile : int[read-only] 地图横向的格子...

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

408. sprite点击事件 位置便宜 [ 68%]

... "#D2691E"); rect.size(200, 200); rect.pivot(100,100); rect.x = Laya.stage.width /2; rect.y = Laya.stage.height / 2; // let hitArea = new Laya.Rectangle(rect.x-100,rect.y-100,200,200); // rect.hitArea = hitArea; Laya.stage.addChild(rect); //增加鼠标事件 rect.on(Event.MOUSE_DOWN, this, mouseHan...

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

409. 骨骼动画-Spine事件 [ 68%]

...Index = 0; var 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(); mFacto...

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

410. laya.display.Input [ 68%]

...mouseThrough属性。 影响对象鼠标事件响应区域的属性width、height、hitArea,优先级顺序:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY ...

来源: laya_api 发布时间: 20170929