大约有 1,754 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0166 秒)
Laya_社区(1137) Laya3.0_api(223) Laya2.0_文档(89) Laya2.0_api(72) Laya2.0_示例(66) Laya_示例(63) laya_api(62) Laya3.0_文档(42)
...个<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
...暂不支持。 比如以下代码: 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
...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
....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
...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
...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
...处理做一下取整处理,看下是否能解决您这个问题: The width of getCharBmp must be an integer 2024-05-30 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 忆汉月 相关问题 微信关系链:LayaAir引擎针对微...
来源: Laya_社区 发布时间: 20240514
... 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
...竖屏思路: Laya.stage.scaleMode "fixedwidth" :宽度不变,高度根据屏幕比缩放 这种模式下的Laya.init(width,height, WebGL);高度一般是不对的,需要计算 b.横屏思路: Laya.s...
来源: Laya_社区 发布时间: 20200305
...口区域 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