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

大约有 1,280 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0199 秒)

601. Laya.BlinnPhongMaterial.RENDERMODE_TRANSPARENT设置透明度不行了? [ 64%]

...nnPhongMaterial();         Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) {             material.albedoTexture = tex;         }));         material.albedoColor = new Laya.Vector4(1.0, 1.0, 1.0, 0.5);         material.renderMode =...

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

602. 发现TimeLine的一些问题,像是BUG [ 64%]

...s.Event; import laya.net.Loader; import laya.utils.Ease; import laya.utils.Handler; import laya.utils.Stat; import laya.utils.TimeLine; public class AirDemo { private var sp1:Sprite; private var sp2:Sprite; private var sp3:Sprite; private var timeLine1:TimeLine; private var timeLine2:TimeLine; priva...

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

603. LayaAir与LayaFlash有什么区别? [ 63%]

...详细区别是什么? 自从layaflash起,就一直存在的bug Laya.Handler.create和new Laya.Handler有啥区别 LayaAir 3D 有提供 3D 物理引擎功能吗? 按官网上的文档 使用LayaNative运行LayaAir项目https://ldc.layabox.com/doc/?nav=zh-as-7-0-1。出现了问题 在初始化...

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

604. TiledMap地图下显示问题 [ 63%]

.../orthogonal-test-movelayer.json", new Rectangle(0, 0, 5000, 5000),new Laya.Handler(this,this.finishLoadMap));     Rectangle设置太小,分开加载了,加载会从下开始加载,导致上面的会盖上去 2018-03-26 0 0 分享 微博 QZONE 微信 qian 赞同来自: 好的 有问题再反...

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

605. 分享:LayaAir下如何获取图集下的小图资源? [ 63%]

...e; 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.json",type:Loader.ATLAS}], Handler.create(this, onLoaded))...

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

606. bitmapFont.loadFont()加载多个地址导致位图输出重 [ 63%]

...tmapFont = new BitmapFont(); var url=urls[i]; bitmapFont.loadFont(url, new Handler(this, this.onFontLoaded, [bitmapFont,value])); } private onFontLoaded(bitmapFont: BitmapFont,value1:string):void { bitmapFont.setSpaceWidth(10); Text.registerBitmapFont(this.fontName, bitmapFont); var txt: Text = new ...

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

607. laya.net.LoaderManager_API3.0 [ 63%]

...turns void create create(url: string | (string | createItem)[], complete?: Handler | null, progress?: Handler | null, type?: string | null, constructParams?: any[] | null, propertyParams?: any, priority?: number, cache?: boolean): void Defined in laya/net/LoaderManager.ts:97 根据clas类型创建...

来源: Laya3.0_api 发布时间: 20231102

608. layaAir TS项目如何引用protoBuf库? [ 63%]

...= Laya.Loader;         var Browser = Laya.Browser;         var Handler = Laya.Handler;         var ProtoBuf = Browser.window.protobuf;         Laya.init(550, 400);         //加载协议文件,相当于加载那个资源         ProtoBuf.load("../laya/proto/awes...

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

609. timeline播放完成Bug [ 63%]

...ttps://layaair2.ldc2.layabox. ... 3B%3B Laya.loader.load(monkey1Path, Laya.Handler.create(this, function() { let monkey = Laya.loader.getRes(monkey1Path); let ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.graphics.drawTexture(monkey, 0, 0); var tl = new Laya.TimeLine(); tl.once('complete', ...

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

610. 请问怎么监听在IDE中创建的UI中资源的加载进度呢 [ 63%]

...载界面的配置文件:Laya.loader.load(['res/atlas/game.json'],Laya.Handler.create(this,Slot.onSourcesLoaded), Laya.Handler.create(this,Slot.onSourcesLoading,null,false),Laya.Loader.ATLAS);这样写似乎监听的当前加载进度不太对,我总共有6张未打包图和1张打包图 打印...

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