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

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

1611. AS引用AS项目打包出来的JS不能用 [ 48%]

...个<div id="layaContainer"><canvas id="layaCanvas" height="1242" width="2208" style="position: absolute; left: 0px; top: 0px; background: rgb(35, 38, 40); transform-origin: 0px 0px 0px; transform: matrix(0.333333, 0, 0, 0.333333, 0, 0);"></canvas><div style="position: absolute; ...

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

1612. Starling项目需要注意哪些问题? [ 48%]

...暂不支持。 比如以下代码: var map:BitmapData = new BitmapData(width * scale, height * scale, false); map.perlinNoise(20*scale, 20*scale, 3, 5, false, true); var texture:Texture = Texture.fromBitmapData(map, false, false, scale); 用到了BitmapData的perlinNoise接口,这个接口Laya...

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

1613. 关于项目分包的问题?? [ 48%]

...ay.StageScaleMode; import flash.events.Event; import login.LoginView; [SWF(width=800,height=600,backgroundColor="0xffffff",frameRate=60)] public class Main extends Sprite { public function Main():void { IFlash.setSize(800, 600);//2D项目中设置场景尺寸 IFlash.setOrientationEx(1); //是否为...

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

1614. 简单粒子效果,发布成单机版apk在移动端安装运行,结果显示不出来 [ 48%]

....stage.addChild(sp);                      sp.x = Laya.stage.width / 2;             sp.y = Laya.stage.height / 2;         }   发布成单机版apk在移动端安装运行,移动端报错提示: http://www.xxx.com/LayaUISampl ... annot read property 'start' of null ...

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

1615. 同一个Graphics里面绘制超过20000个矢量rect的情况下,Uncaught Error: IBQuadrangle count(带悬赏的每次都创建订单失败,之后在社区里面看不到) [ 48%]

...00; j++) { if(count == 10000) { var htmlCanvas:HTMLCanvas = a.drawToCanvas(width,height,0,0); var texture:Texture = new Texture(htmlCanvas); var b:Sprite = new Sprite(); b.graphics.drawTexture(texture); a.graphics.clear(true); a.destroy(); a = b; } a.graphics.drawRect(10*i, 10*j, 10, 10, "#ff0000");...

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

1616. 自定义组件时,设置组件子节点的image的skin时,路径为layaIde的路径而非项目路径 [ 48%]

...ize(); _proMask = new Sprite(); _proMask.graphics.drawRect(0, 0, _progress.width, _progress.height); _proMask.scaleX = 0; _progress.mask = _proMask; _bar.stateNum = 1; } override protected function createChildren():void { super.createChildren(); var index:Number = getChildIndex(_bg); addChildAt(_pro...

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

1617. [LayaAir3]layaair3.1.3版本打出的项目中的text与label组件在vivo小游戏引擎1105及以下文字显示异常 [ 48%]

...处理做一下取整处理,看下是否能解决您这个问题: The width of getCharBmp must be an integer   2024-05-30 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 忆汉月 相关问题 微信关系链:LayaAir引擎针对微...

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

1618. HTMLIframeElement报错 [ 47%]

...         position: absolute;         margin:5px;         width: 300px;     height: 200px;     overflow:auto;     font-size:20px;     line-height:38px;     font-family:"微软雅黑";     color:#000;     text-align:justify;         text-justify:inter-ideograph...

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

1619. 微信小游戏,横屏,小游戏不全屏显示 [ 47%]

...竖屏思路:                    Laya.stage.scaleMode  "fixedwidth" :宽度不变,高度根据屏幕比缩放                   这种模式下的Laya.init(width,height, WebGL);高度一般是不对的,需要计算   b.横屏思路:                    Laya.s...

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

1620. tiledmap 可以在图块层的指定格子上添加Sprite吗 [ 47%]

...口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(0, 0, Conf.App_Width, Conf.App_Height); //创建TiledMap地图 this.tMap.createMap("map/"+mapname+".json",viewRect, laya.utils.Handler.create(this, this.test));//, null, new Laya.Point(1600, 816)); } private test(){ var testLayer:Laya.MapLay...

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