大约有 194 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0040 秒)
...的 fbxtool 工具文件你们有吗? 我不要插件,要可执行的exe Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 天空盒 cubemap ltc 格式? layabox能用上webp图片格式么? 小游戏 解析xml 问题 问题状态 最...
来源: Laya_社区 发布时间: 20151110
...可以找到drawTexture()方法,除此之外,还需要了解laya.net.LoaderManager中的load()方法和getRes()方法,以及laya.utils.Handler中的create()方法,各方法的参数图3、图4、图5、图6所示:  (图3)  (图4)  (图5...
来源: Laya2.0_文档 发布时间: 20210715
...adImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.po...
来源: Laya_示例 发布时间: 20251130
...tage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.flag = true; Laya.loader.load([monkey1Str, monkey2Str], Laya.Handler.create(this, this.onAssetsLoaded)); } onAssetsLoaded() { monkey1Res = Laya.loader.getRes(monkey1Str), monkey2Res = Laya.loader.getRes(monkey2Str); this.ape = new Laya.Sprite(...
来源: Laya2.0_示例 发布时间: 20251130
...-----------------------package { import laya.display.Text; import laya.net.Loader; import laya.utils.Handler; /** * ... * @author OttoChen */ public class TestMain { private var txt:Text = null; public function TestMain() { Laya.init(800, 800); txt = new Text(); txt.mouseEnabled = false; txt.overflo...
来源: Laya_社区 发布时间: 20180227
...import laya.display.Animation; import laya.display.Sprite; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class Main { public function Main() { //初始化引擎 Laya.init(600, 800); //加载引擎需要的资源 Laya.loader.load([{url:"res/atlas/atlas_res.js...
来源: Laya_社区 发布时间: 20160707
...ml信息出错 你好,我想获取xml的信息(得到../h5/),可是Loader.getRes(config_PATH) as XmlDom这个得到的不是XmlDom,而是ArrayBuffer{}结构。configData.attributes和configData.childNodes都是undefined。麻烦帮忙看看是哪里出错了。 代码: var configData:...
来源: Laya_社区 发布时间: 20170531
...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Handler.create(this, setup)); })(); function setup() { createApe(); applayFilter(); } function createApe() { ape = new Sprite(); ape.loadImage(apePath); var texture = Laya.loader.getRes(apePath); ape.x = ...
来源: Laya_示例 发布时间: 20251130
...ng, Laya.stage.width + padding * 2, Laya.stage.height + padding * 2); Laya.loader.load(texturePath, Handler.create(this, onTextureLoaded)); })(); function onTextureLoaded() { maggotTexture = Laya.loader.getRes(texturePath); initMaggots(); Laya.timer.frameLoop(1, this, animate); } function initMaggot...
来源: Laya_示例 发布时间: 20251130
...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Laya.Handler.create(this, this.setup)); } setup() { this.createApe(); this.applayFilter(); } createApe() { const Sprite = Laya.Sprite; this.ape = new Sprite(); Laya.stage.addChild(this.ape); let texture =...
来源: Laya2.0_示例 发布时间: 20251130