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

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

61. 3D模型加载出错 [ 75%]

...aya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh",Laya.Handler.create(null, function(sp){         //Laya.Sprite3D.load("res/layatest.lh",Laya.Handler.create(null, function(sp){             this.box=scene.addChild(sp);             this.box.transform.ro...

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

62. 内存释放问题 [ 75%]

...e: Laya.Loader.TEXT } // 协议文件 ]; Laya.loader.load(uiResArray, Laya.Handler.create(this, onCompleted), Laya.Handler.create(this, ProgressPanel.showGameLoadingProgressPanel, null, false)); } /** * 显示一个模块面板 * 需要 资源altlas的名称面板的类全名 * @static * @param {...

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

63. 使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时就会出现无限循环加载,一直到浏览器奔溃 [ 75%]

... this.loadFont(); }   loadFont() { const  BitmapFont = Laya.BitmapFont, Handler = Laya.Handler;   Laya.loader.load([{     url: ['res/bitmapFont/test.fnt'],     type: Laya.Loader.FONT }], Handler.create(this, () => {             console.log('bitmapFont loaded');               ...

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

64. l微信开放域无法显示,但是可以正常传数据 [ 75%]

...//加载一个json图集 Laya.loader.load(["res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); }));子域main.ts: import GameConfig from "./GameConfig"; import BigRan...

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

65. tiledmap有时尺寸不正确 [ 75%]

...neLoadState.eLoadNull; // 地图创建完成回调函数 private _mCompleteHandler:Handler = null; private _mTest:number = 0; constructor(){ } /** * 创建地图,并显示当前场景 * @param conf 地图的配置信息 */ public create(conf:LevelConf, handler:Handler):void{ this._mLevelConf = con...

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

66. 物理碰撞器(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 75%]

...ngMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex) { planeMat.albedoTexture = tex; })); //设置纹理平铺偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); //设置材质 plane.meshRenderer.material = planeMat; //平面添...

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

67. 如何显示动画ani [ 75%]

...主页面上显示啊。 教程中 Laya.loader.load("./res/atlas/ui.atlas",Handler.create(this,onLoaded));这个ui.atlas 死活没看见啊。   代码复制了,不行 啊,坑在哪里???? package{import laya.net.Loader;import laya.utils.Handler;import ui.EffectAnimationDemoUI;  publi...

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

68. 关于Laya.loader.loadgetRes的问题 [ 75%]

...2:使用drawTexture Laya.loader.load("../../../../res/apes/monkey2.png", Handler.create(this, function():void { var t:Texture = Laya.loader.getRes("../../../../res/apes/monkey2.png"); var ape:Sprite = new Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200, 0); })); ...

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

69. 用ide打包后的图片,Texture显示不出来? [ 75%]

...   代码 : Laya.loader.load([{url: "comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); function onLoaded(){     var aa = new Sprite();     Laya.stage.addChild(aa);     var texture = new Laya.Texture();     texture.load('comp/zzw.png' );     setTimeout( function(){   ...

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

70. 问一下tween的一些参数怎么设置 [ 74%]

...ge { import laya.display.Sprite; import laya.utils.Ease; import laya.utils.Handler; import laya.utils.Tween; public class LayaAirDemo { private var sp:Sprite; private var num:int; public function LayaAirDemo() { Laya.init(550,400); sp=new Sprite(); sp.graphics.drawCircle(0,0,50,"#00FFFF"); Laya.stag...

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