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

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

1101. Animation如何获取图集单帧实际宽高 [ 55%]

...model+".atlas",Handler.create(this,onLoad)); function onLoad():void { this.addChild(ani); var bounds:Rectangle = ani.getBounds(); Control.showLog(bounds.toString()); } 附件 : --> 2018-03-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

1102. 为什么使用 HTMLDivElement 有%号,文字太长的时候%号会换到第二行? [ 55%]

...候%号会换到第二行? var text = new HTMLDivElement(); Laya.stage.addChild(text); text.color = "#fff"; text.style.fontSize = 24; text.innerHTML = "子弹命中率:<span style='color: #ee452c'>25</span>\/50 50%";     用的是最新版本 2017-03-26 添加评论 免费帖 --> ...

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

1103. 我自己绘制的矩形如何以自身中心点旋转不能实现啊 [ 55%]

...rite=new Sprite(); sp.graphics.drawRect(0,0,200,300,"#000fff"); Laya.stage.addChild(sp); sp.size(200,300); sp.pivot(sp.width/2,sp.height/2); sp.pos(200,200); Laya.timer.frameLoop(1,this,onLoopRotation,[sp]); } private function onLoopRotation(sp:Sprite):void { sp.rotation++; } } } 2017-09-05 0 0 分...

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

1104. 请教Laya.BitmapFont加载位图文字不能显示的问题 [ 55%]

... txt.font = this.mFontName; txt.fontSize = 50; txt.leading = 5; Laya.stage.addChild(txt); } } new GameMain(); 资源能加载到,但运行后什么都没有看见。请问谁知道为啥? 附件 : --> assets.rar 2017-10-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

1105. 保存数据的数组在回调的时候变为undifine [ 55%]

... _heroItemList[i] = item; } _heroItemList[i].init(heroInfo); panelHeroInfo.addChild(_heroItemList[i]); _heroItemList[i].x = i%3*190; _heroItemList[i].y = parseInt((i/3).toString()) * 155; } console.debug("创建的实例的数量::"+_heroItemList.length); } private function onSelectedHeroChange():vo...

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

1106. WaterPrimaryMaterial的使用 [ 55%]

...里怎么调都是单一色块呢?   var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(10, 10))) as Laya.MeshSprite3D; // box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); // var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); //...

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

1107. layaair1.7.9 beta版,给图片加上颜色滤镜,效果有问题 [ 55%]

...a.display.Sprite = new laya.display.Sprite(); spr.texture = tx; Laya.stage.addChild(spr); spr.x = 300; spr.y = 100; var color:Array = ; color.push( 0, 0, 0, 0, 255, 0, 0, 0, 0, 255, 0, 0, 0, 0, 255, 0, 0, 0, 1, 0); var filter:ColorFilter = new ColorFilter(color); spr.filters = [filter];   附件 : ...

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

1108. Uncaught TypeError: Cannot read property 'XXX' of undefined [ 55%]

...;             spe.size(512, 512);             Laya.stage.addChild(spe);             spe.graphics.drawRect(0, 0, 515, 515, "#996633", "#333333");             spe.on(Event.MOUSE_DOWN, spe, onMouseDown);             Laya.stage.on(Event.MOUSE_UP, this, onMous...

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

1109. 加载SK文件时,报错如下:Uncaught getUint16 error - Out of bounds [ 55%]

...ETE, this, function(){ var roleAni = roleTemp.buildArmature(1); Laya.stage.addChild(roleAni); }) roleTemp.loadAni('res/spine/knight/effect1.sk'); SK动画已经预加载了:Laya.loader.load(['res/spine/knight/effect1.png', 'res/spine/knight/effect1.sk'], Handler.create(this, init)); 2018-03-23 添...

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

1110. 请问我导入3d模型一直找不到它 [ 55%]

... 菜鸟注意 ts 1.4  添加一盏灯光     var directionLight =scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight;             directionLight.ambientColor = new Laya.Vector3(0.7, 0.6, 0.6);             directionLight.specularColor = new Laya.Vector3(1.0, 1.0, 0....

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