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

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

1281. scaleMode设为full时怎么pc浏览器跟平板上效果不一样? [ 51%]

...age.alignV = Stage.ALIGN_MIDDLE; Laya.loader.load("assets/bg.jpg", Handler.create(this, loadCompleteHandler)); } private function loadCompleteHandler():void { var bg:Image = new Image("assets/bg.jpg"); Laya.stage.addChild(bg); }这张图在三星平板上可以完整显示出来,为什么在电脑...

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

1282. LayaNative端使用.ttf字体 [ 51%]

...(550,400); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("hu.ttf",Handler.create(this,onLoaded),null,Loader.BUFFER); } private function onLoaded():void { var arr:ArrayBuffer=Laya.loader.getRes("hu.ttf"); if(Browser.window.conch) { Browser.window.conch.setFontFaceFromBuffer("hu",arr); } var text:Tex...

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

1283. Matter.js引擎和laya这边的层次关系 [ 51%]

...方估计什么意思都不理解 解决方法如下: 调用layaRender.create(obj);这个方法 obj.container 这个的属性意思就是物理引擎的界面渲染到那个界面,如果不传就是默认stage,我之前就是因为没传,所以物理引擎渲染出来的都是添加到stage...

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

1284. 新版版2d粒子问题?同样的代码,LayaAir IDE 2.1.0版本正常,LayaAir IDE 2.2.0beta2版本报错 [ 51%]

...            Laya.loader.load("HallAni/star.part", Laya.Handler.create(this, (settings) => {                 let Particle2D = Laya.Particle2D;                 // 创建 Particle2D 实例                 let partIns = new Particle2D(settin...

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

1285. laya2.3图集含空白裁切后,锚点旋转bug,demo重现 [ 51%]

...aya.Sprite = new Laya.Sprite();         sp3.texture = Laya.Texture.create(tx3,0,0,315,315,134,134,582,582);          sp3.pivot(315/2,315/2);//锚点使用实际裁切后的中心反而是对的,这按理是bug吧         // sp3.pos(Laya.stage.width/2,0);         Lay...

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

1286. 图片加载莫名变成了一个 html 字串 [ 51%]

...-13 11:38 好的,谢谢 Nevermore • 2020-08-24 18:47 TypeError: Cannot create property '$_GID' on string '<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>访问...

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

1287. 苹果上架直接导致账号被调查。。。 [ 51%]

...g our investigation, we will not review any apps you submit. Please do not create a new developer account or make any app transfers while waiting for the investigation to be completed. Once we have completed our investigation, we will notify you via Resolution Center. Due to the nature of the invest...

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

1288. layaAir如何实现for循环加载多张图片,并且通过事件按比例缩小 [ 50%]

...      {                 Laya.loader.load(picAy[i],Handler.create(this, onAssetLoaded))             }         }         private function onAssetLoaded(texture:Texture):void         {             var ape:Sprite = new Sprite;             ape.x...

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

1289. 使用Tween.to完成回调异常! [ 50%]

...调异常! Tween.to(this.floatTxt, {y:-30}, 600, Ease.expoOut, Handler.create(this,onFloatComplete)); protected function onFloatComplete(callBack:Function):void {  this.removeSelf(); } 我用这个缓动来做飘字效果,完成回调的时候,把飘字对象在场景上移除,结果执行...

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

1290. 求救 Laya2.0下的Particle2D问题 [ 50%]

...效后就置为true Laya.loader.load('../bin/testflame.part', Laya.Handler.create(this, (setting) => { let frame = new Laya.Particle2D(setting); let key = keyString; let frameX; let frameY; let play = true; let frameScale; let frameRotation; //问题在下面://如果首次传入E/Q,尾焰正...

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