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

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

591. 设置滤镜(ActionScript-LayaAir基础篇(AS3)-位图) [ 52%]

...howall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); } private function setup(e:*=null):void { normalizeApe(); makeRedApe(); grayingApe(); } private function normalizeApe():void { var originalApe:Sprite = createApe(); apeTexture = Laya.loader.getRes(ApePat...

来源: Laya2.0_文档 发布时间: 20210715

592. 使用多个时间轴动画 demo.ani(0,true,'name')失效 [ 52%]

...oaded回调方法 Laya.loader.load("res/atlas/ui/boos.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { // //创建一个Animation实例 // var tl = new Laya.Animation(); // //加载动画文件 // tl.loadAnimation("test.ani"); // //添加到舞台 // Laya.stage.addChild(tl); // //...

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

593. Laya.Tween怎么运用到3D对象上? [ 52%]

...ld;     }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){     console.log("complete"); }),ConstValue.animationDelay);   无法直接设置原因是浅拷贝变量无法同步到原对象中去   2018-01-12 0 3 分享 微博 QZONE 微信 源 赞同来自:...

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

594. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 52%]

...mage.json Laya.loader.load([{url: "res/Image.json", type: "plf"}], Handler.create(this, function():void { //在回调里,正常使用原来的图集 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("comp/comp.png"); var sp:Sprite ...

来源: Laya2.0_文档 发布时间: 20210714

595. laya3.0中jszip使用异常 [ 52%]

...oader.load([{ url: zipUrl, type: Laya.Loader.BUFFER }], null, Laya.Handler.create(this, this.onLoadCfg, null, false)).then(             (value) => {                 JSZip.loadAsync(value).then(                     (zipData: JSZip) => {                       ...

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

596. 绘制能力 · LayaAir3.3 · 引擎文档 · LAYABOX [ 52%]

...mber = 1, percent?: boolean): DrawRectCmd { return this.addCmd(DrawRectCmd.create(x, y, width, height, fillColor, lineColor, lineWidth, percent)); } 代码示例: let sp = new Laya.Sprite(); //画矩形 sp.graphics.drawRect(20, 20, 100, 50, "#ffff00", "#00ff00", 5, false); this.owner.addChild(sp);...

来源: Laya3.0_文档 发布时间: 20251010

597. 使用IDE打包图集工具出来的atlas,调用clearRes无法卸载资源 [ 52%]

...载时时这样调用 Laya.loader.load("res/MainBlood.atlas", Laya.Handler.create(this, this.onAtlasLoaded), null, Laya.Loader.ATLAS); 卸载时这样 Laya.loader.clearRes("res/MainBlood.atlas");在Laya.Loader.loadedMap里查找是没有了,但是统计面板的CurMem降不下来,工程已经打...

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

598. Animation的createFrames为何加载不了有的图集资源 [ 52%]

Animation的createFrames为何加载不了有的图集资源 package { import laya.ani.AnimationState; import laya.display.Animation; import laya.net.Loader; import laya.ui.Image; import laya.utils.Handler; import view.TestView; public class LayaUISample { public function LayaUISample() { //初始...

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

599. 图集打包后使用Texture不显示,项目整个已经传上来了 [ 52%]

...: "res/start.json", type: Loader.ATLAS}); Laya.loader.load(assets, Handler.create(this, this.onComplete)); } private onComplete(): void { var texture:Texture = Laya.loader.getRes("start/sg.png"); var sp = new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); Laya.stage.addChild(sp); var ani: Laya...

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

600. 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 [ 52%]

..."bg/hallrom.json", type:Loader.JSON}, ]; Laya.loader.load(altsArr, Handler.create(this, onComplete));   function onComplete():void{      trace("加载完成"); } 2018-05-18 1 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 楼上的回答是正确的,关于重复过滤引擎是有判断...

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