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

大约有 1,282 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0051 秒)

481. 请问怎么制作一个layabox js版本的加载效果 [ 70%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(["./comp/progress.png", "./comp/progress$bar.png"], Handler.create(this, onLoadComplete)); } console.log(1); Laya.class(Loadings,"Loadings",_super); function onLoadComplete() { progressBar = new ProgressBar("./com...

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

482. MiniAdpter.autoCacheFile=true没有任何作用,并没有缓存资源 [ 70%]

...ion 的createFrames 使用已经加载的图集缓存动画失败 请问下loader如何强制加载一个文件,避免浏览器的缓存 【BUG备忘录】关于Tween动画无法正常作用问题-解决办法 请教下微信小游戏的内存和数据缓存? 分享:LayaAir下如何获取图...

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

483. 材质-BlinnPhong-高光贴图 [ 70%]

..., 1, 1); var completeHandler = Laya.Handler.create(this, onComplete); Laya.loader.create("../../res/threeDimen/skinModel/dude/dude.lh", completeHandler); function onComplete() { var dude1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/dude/dude.lh")); dude1.transform.positi...

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

484. 麻烦给一个watermaterial的示例,我自己调的没法看 [ 69%]

...轴动画里创建的多个动画,怎么分别调用?如图 请问下loader如何强制加载一个文件,避免浏览器的缓存 一个3D正方体模型,想给它六个面贴不同的贴图,该如何处理? 移植了一个游戏 代码重新 写的 H5动画和节奏的一个加速! ...

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

485. 当使用Image作为一个对象的遮罩时,设置Image的ScaleX为0时遮罩失效! [ 69%]

... // 程序入口 class GameMain{ constructor() { Laya.init(1280,720); Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loaded,null)); } private loaded():void{ var img:Laya.Image = new Laya.Image(); img.skin = "comp/img_pro.png"; Laya.stage.addChild(...

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

486. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 69%]

...a.Browser.window.URL.createObjectURL(blob);//创建一个url对象; //用loader来加载url Laya.loader.load(url,Laya.Handler.create(this,this.showImg,[url]),null,Laya.Loader.IMAGE); } private showImg(url:string):void{ var t:Laya.Texture = Laya.loader.getRes(url); var ape:Laya.Sprite = new Laya.Sp...

来源: Laya2.0_文档 发布时间: 20210714

487. 如何在项目中加载ttf字体? [ 69%]

...载ttf字体? 参考http://ask.layabox.com/question/1645写的, Laya.loader.load("font/本墨竟圆-常规.ttf",Laya.Handler.create(this,OnComplete_FontLoad),null,Laya.Loader.BUFFER); function OnComplete_FontLoad() { console.log("加载字体"); var newFont = Laya.loader.getRes("font/本墨竟...

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

488. UI-CheckBox [ 69%]

...kbox (4).png", "res/ui/checkbox (5).png", "res/ui/checkbox (6).png"]; Laya.loader.load(skins, Handler.create(this, this.onCheckBoxSkinLoaded)); } onCheckBoxSkinLoaded() { let cb; for (let i = 0; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alig...

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

489. 材质-BlinnPhong-法线贴图 [ 69%]

...ctor3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); Laya.loader.create("../../res/threeDimen/staticModel/lizardCal/lizardCaclute.lh", Laya.Handler.create(this, onComplete)); function onComplete() { var monster1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticMo...

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

490. 发布h5项目,在浏览器上初始加载资源过多导致卡顿怎么优化 [ 69%]

...3-30 10:47 你预加载资源怎么写的 yaorao • 2018-03-30 11:29 Laya.loader.load([ { url: "res/common@atlas0.png", type: Loader.IMAGE }, { url: "res/common.fui", type: Loader.BUFFER }, { url: "res/game@atlas0.png", type: Loader.IMAGE }, { url: "res/game.fui&q...

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