大约有 1,210 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0059 秒)
Laya_社区(874) Laya2.0_文档(85) Laya3.0_api(61) Laya2.0_api(58) laya_api(55) Laya_示例(32) Laya2.0_示例(27) Laya3.0_文档(18)
...**创建图片***/ private function createImage():void { //实例化图片 var img:Image = new Image("../../../../res/ui/dialog (3).png"); //设置位置 img.pos(165, 62.5); //加载到舞台 Laya.stage.addChild(img); } } } ```
来源: Laya2.0_文档 发布时间: 20210714
位图拉伸 模糊 var i=new Laya.Sprite(); i.loadImage('res/DUMMY1.png'); i.scale(10,10); Laya.stage.addChild(i); 做像素游戏的时候,位图做缩放的话,能不能去掉这个平滑处理,就是如图这样的像素效果 另外,刚才我在UI里面把一个小的像素区域作...
来源: Laya_社区 发布时间: 20180613
...L; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { var dialog: Image = new Image("res/ui/dialog (3).png"); dialog.pos(165, 62.5); Laya.stage.addChild(dialog); } } } new laya.UI_Image(); ```
来源: Laya2.0_文档 发布时间: 20210714
...is.showTotalSeconds(); this.createController(); } private showBg(): void { var bg: Laya.Image = new Laya.Image(this.bgSkin); bg.size(224, 302); bg.pos(Laya.stage.width - bg.width >> 1, Laya.stage.height - bg.height >> 1); this.owner.addChild(bg); } private createTimerAnimation(): void { ...
来源: Laya3.0_文档 发布时间: 20251010
...ron 赞同来自: 在编译出来的js 最前面加上下面这两行 var window = window || global; var document = document || (window.document = {}); 2018-07-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起...
来源: Laya_社区 发布时间: 20180715
graphics的fillTexture 圆角图边缘有多出线条 var texture = LoadingManager.instance.getRes("res/progress.png"); var graphics=new Laya.Graphics(); graphics.fillTexture(texture,0,0,texture.width,texture.height,"repeat"); 如果用drawTexture就没问题,因为平铺需求 需要用到fillTe...
来源: Laya_社区 发布时间: 20180904
...自: //初始化引擎 Laya.init(600, 400); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,200,"#FF0000"); Laya.stage.addChild(sp); var timeLine:TimeLine=new TimeLine(); timeLine.on(Event.LABEL,this,onLabel); timeLine.addLabel("A",0).to(sp,{rotation:360},700) ...
来源: Laya_社区 发布时间: 20161229
...plet)); } private var imag:Image; private function onComplet():void { imag=new Image("ui/comp/image.png"); Laya.stage.addChild(imag); imag.on(Event.MOUS...
来源: Laya_社区 发布时间: 20170510
...0:09 浏览: 3361 关注: 4 人 HummerMan • 2019-07-06 10:47 需要设置var curResourceManager = Laya.ResourceManager.currentResourceManager; curResourceManager.autoRelease = true; curResourceManager.autoReleaseMaxSize = 1024 * 100; HummerMan • 2019-07-06 10:48 内存自动管理,下边那个...
来源: Laya_社区 发布时间: 20170221
...建缓动文本 private createTween():void{ //"LayaBox字符串总宽度" var w:number = 800; //文本创建的起始位置(>>在此使用右移运算符,相当于/2 用>>效率更高) var offsetX:number = Laya.stage.width - w >> 1; //显示的字符串 var demoString:string = "LayaBox"; var lette...
来源: Laya2.0_文档 发布时间: 20210715