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

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

571. Image属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 67%]

...**创建图片***/ 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

572. 位图拉伸 模糊 [ 67%]

位图拉伸 模糊 var i=new Laya.Sprite(); i.loadImage('res/DUMMY1.png'); i.scale(10,10); Laya.stage.addChild(i);   做像素游戏的时候,位图做缩放的话,能不能去掉这个平滑处理,就是如图这样的像素效果 另外,刚才我在UI里面把一个小的像素区域作...

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

573. Image属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 67%]

...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

574. 位图切片组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...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

575. 图文混排聊天室之WebSocket服务器的疑问 [ 67%]

...ron 赞同来自: 在编译出来的js 最前面加上下面这两行    var window = window || global; var document = document || (window.document = {}); 2018-07-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起...

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

576. graphics的fillTexture 圆角图边缘有多出线条 [ 67%]

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

577. TimeLine运行的小问题 [ 67%]

...自: //初始化引擎 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

578. 打包APK运行,drag拖动出现问题;color="#0"程序直接崩溃 [ 67%]

...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

579. 创建laya的视图销毁destroy()清除不了 [ 66%]

...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

580. 缓动动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 66%]

...建缓动文本 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