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

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

101. fillTexture使用问题 [ 68%]

... number = 1188; static height: number = 594; constructor() { super(); Laya.loader.load("res/images/map_01.png", Laya.Handler.create(this, this.bgLoaded)); } bgLoaded(): void { let t: Laya.Texture = Laya.loader.getRes("res/images/map_01.png"); this.width = 1000; this.height = 500; this.graphics.fillT...

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

102. ToolTip鼠标悬停使用 [ 67%]

...提示功能 以下提供了三种鼠标提示package { import laya.net.Loader; import laya.ui.Button; import laya.ui.TipManager; import laya.utils.Browser; import laya.utils.Handler; import ui.TestTipsUI; public class ToolTipDemo { private var _testTip:TestTipsUI;//ui弹框(IDE发布),用...

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

103. 图片使用pivotX参数后,再对图片添加遮罩会出现效果不对。 [ 67%]

...showall";         Laya.stage.bgColor = "#232628";         Laya.loader.load("../../res/bg2.png", Handler.create(this, setup));     })();     function setup()     {         var bg = new Sprite();         bg.loadImage("../../res/bg2.png");         Laya.stage.addCh...

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

104. 关于创建Sprite获取大小 [ 67%]

...调。这个是异步获取,如果你要单个获取话 window.Laya.loader.load(value.url, ls.Handler.create(this, function () { _this.graphics.clear() var texture = window.Laya.loader.getRes(value.url) _this.graphics.drawTexture(texture) _this.scaleX = _this.set_width / texture.sourceWidth _th...

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

105. 图集动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 67%]

...板,urls接收是图片地址集合,所以我们需要先使用Laya.loader.load()将图集文件先加载进来。下面我们直接看示例代码及注释。 ```javascript //初始化舞台 Laya.init(1334, 750,Laya.WebGL); //加载完动画图集后执行回调方法onLoaded Laya.loader....

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

106. 音频解码一直遇到这个问题呢,不知道什么原因 [ 67%]

...31 16:32 @smile:传demo吧。 smile • 2018-05-31 17:36 @Laya_Aaron: Laya.loader.load(assetArr,Handler.create(this,this.gameStart),Handler.create(this,onProgress,null,false)); private var assetArr:Array=[ {url:"sound/bgMusic.mp3", type:Loader.SOUND}, {url:"sound/button.mp3", typ...

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

107. Laya1.7.20如何加载3d资源? [ 67%]

...载速度慢 小游戏项目 加载有中文json文件 报错 请问下loader如何强制加载一个文件,避免浏览器缓存 本地调试加载本地图片都报错 模型资源释放问题 打包出来后APP打开加载速度过慢,有黑屏,如何加入闪屏图片 Animation ...

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

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

...ER; Laya.stage.scaleMode = "showall"; 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(); apeTextur...

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

109. Animation createFrames 使用已经加载图集缓存动画失败 [ 66%]

...了,地址当然不正确了,导致无法下载.代码大致如下: Laya.loader.load('player/player.json',Laya.Handler.create(this, this.onLoaded),null); ----onComplate: Laya.Animation.createFrames(['player-left.png'], "walk-left"); 2016-06-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

110. 为什么我做好UI无法添加到舞台上 [ 66%]

...关链接 提交 1 个回复 cuixueying 赞同来自: z1071051378 Laya.Loader.load第三个参数Laya.Loader.ATLAS加上看下,如果还不行,可以上传下你Demo,我们看下! 2017-06-06 1 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请...

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