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

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

601. Layabox 2.0构建Android版本在4.2上面报错崩溃 [ 73%]

...untime: FATAL EXCEPTION: main     java.lang.UnsatisfiedLinkError: Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library "libv8.cr.so" needed by "liblayaair.so"; caused by load_library(linker.cpp:745): library "libv8.cr.so" not found         at java.lang.Runtime.loadLi...

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

602. 滤镜-发光滤镜 [ 73%]

...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_示例 发布时间: 20251209

603. laya.d3.resource.DataTexture2D [ 73%]

...Texture2D  getPixels():Uint8Array 返回图片像素。 DataTexture2D  load(url:String, w:int = 0, h:int = 0, magfilter:int, minfilter:int):DataTexture2D[static] 加载Texture2D。 DataTexture2D  onAsynLoaded(url:String, data:*, params:Array):void[override] private DataTexture2DProtected Metho...

来源: laya_api 发布时间: 20170929

604. UI-ComboBox [ 73%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { var cb = createComboBox(skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } function cre...

来源: Laya_示例 发布时间: 20251209

605. UI-Input [ 73%]

...2).png", "../../res/ui/input (3).png", "../../res/ui/input (4).png"]; Laya.loader.load(skins, Handler.create(this, onLoadComplete)); //加载资源。 })(); function onLoadComplete() { for (var i = 0; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stag...

来源: Laya_示例 发布时间: 20251209

606. 请问Laya一般是怎么读取.txt数据的? [ 73%]

... บ 赞同来自: 我们引擎是不支持Node.js的,我们支持的是loadload(url: string, type?: string | null, cache?: boolean, group?: string| null, ignoreCache?: boolean, useWorkerLoader?: boolean): void 2020-09-22 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 ...

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

607. 性能测试-虫子(慎入) [ 73%]

...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_示例 发布时间: 20251209

608. UI-Input [ 73%]

...es/ui/input (2).png", "res/ui/input (3).png", "res/ui/input (4).png"] Laya.loader.load(skins, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { for (let i = 0, len = skins.length; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alig...

来源: Laya2.0_示例 发布时间: 20251209

609. 滤镜-发光滤镜 [ 73%]

...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_示例 发布时间: 20251209

610. 是不BMFONT不支持多类型资源加载方式? [ 73%]

...式? var assets = []; assets.push( { url: "res/fontWord.fnt", type: Laya.Loader.FONT }); Laya.loader.load(assets, Laya.Handler.create(this, onAssetsLoaded)); function onAssetsLoaded(){ var bitmapFont = new Laya.BitmapFont(); bitmapFont.loadFont("res/fontWord.fnt"); //必出错 }     只要使用...

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