大约有 2,994 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0088 秒)
Laya_社区(2435) Laya2.0_文档(172) Laya3.0_api(101) Laya_示例(79) Laya3.0_文档(70) Laya2.0_api(55) laya_api(42) Laya2.0_示例(40)
... BaseTexture getPixels():Uint8Array 返回图片像素。 Texture2D load(url:String, complete:Handler):void[static] 加载Texture2D。 Texture2D loadImageSource(source:*, premultiplyAlpha:Boolean = false):void 通过图片源填充纹理,可为HTMLImageElement、HTMLCanvasElement、HTMLVide...
来源: Laya2.0_api 发布时间: 20190513
...信工具调试库 2.2.1 最新 都是最新的 加载方式:Laya.loader.create 获取方式:scene = Laya.loader.getRes(path) as Scene; 2018-08-02 1 2 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 可以 2018-08-02 0 0 分享 微博 QZONE 微信 承 赞同来自: 真的可以么 ...
来源: Laya_社区 发布时间: 20180802
...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load([buttonSkin, clipSkin, bgSkin], laya.utils.Handler.create(this, onSkinLoaded)); })(); function onSkinLoaded() { showBg(); createTimerAnimation(); showTotalSeconds(); createController(); } function showBg() { var b...
来源: Laya_示例 发布时间: 20260303
...-----------------------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
...Dic: Laya.Dictionary = new Laya.Dictionary(); constructor() { } static gameLoading(name: string, onCompleted: Function): void { let uiResArray = [ { url: "res/atlas/common.json", type: Laya.Loader.ATLAS }, { url: "res/atlas/comp.json", type: Laya.Loader.ATLAS }, // 登录的UI和选角的UI { url: "...
来源: Laya_社区 发布时间: 20170905
...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); function setup() { normalizeApe(); makeRedApe(); grayingApe(); } function normalizeApe() { var originalApe = createApe(); apeTexture = Laya.loader.getRes(ApePath); orig...
来源: Laya2.0_文档 发布时间: 20210714
...s/fs.js:1:37) npm ERR! at Module._compile (node:internal/modules/cjs/loader:1101:14) npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) npm ERR! at Module.load (node:internal/modules/cjs/loader:981:32) npm ERR! at Function.Module._load (node:...
来源: Laya_社区 发布时间: 20220406
...以下错误 PS D:\layagame\sblaya2> layaair2-cmd internal/modules/cjs/loader.js:638 throw err; ^ Error: Cannot find module 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\layaair2-cmd\layaair2-cmd.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:...
来源: Laya_社区 发布时间: 20191231
...th (AA.max.js:674) at ResInfo.__proto.event (AA.max.js:453) at LoaderManager.__proto._endLoad (AA.max.js:9492) at Loader.onLoaded (AA.max.js:9469) at EventHandler.__proto.runWith (AA.max.js:674) at Loader.__proto.event (AA.max.js:453) 附件 : --> testA_B.zip 2017-07-25...
来源: Laya_社区 发布时间: 20170725
...法,AS/TS思路一样,请根据自己的需求进行修改即可!var Loader = laya.net.Loader; var Handler = laya.utils.Handler; var Event = laya.events.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //list赋值,先获得一个数据源数组 var arr = ; for (va...
来源: Laya_社区 发布时间: 20170513