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

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

921. laya.resource.Texture2D [ 64%]

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

922. 3d项目发布到微信工具真机预览无法加载场景ls文件??? [ 64%]

...信工具调试库 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

923. UI-Clip [ 64%]

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

924. JSON文件加载成功后,怎么解析成Object对象 [ 64%]

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

925. 内存释放问题 [ 64%]

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

926. 设置滤镜(JavaScript-LayaAir基础篇(JS)-位图) [ 64%]

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

927. 全局安装layaair2-cmd报错怎么办啊 [ 63%]

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

928. 2.4.0bate IDE layaair2-cmd 安装错误求解 [ 63%]

...以下错误 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

929. 分包项目, 加载js时报错 [ 63%]

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

930. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 63%]

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