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

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

2651. GlowFilter和TimeLine/Tween一起用的问题 [ 64%]

..., {blur: 1}, 200, null, 0);         }         t.on(Event.COMPLETE, this, function(){             sp.filters = null;         });         t.play(0, true);     };   (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebG...

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

2652. 小游戏对读取json文件有要求吗?为啥说读取json文件错误啊 [ 64%]

...ascii"; } 2018-01-15 0 0 分享 微博 QZONE 微信 liwenhua 赞同来自: this.linkJson = Laya.loader.getRes('res/json/linkUrl.json');这样读取出来不就是就对象了吗,怎么设置编码格式啊??不会啊!!!我都是这样引用,然后直接this.linkJson.XXX进行读取的...

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

2653. [LayaNative2.2.0beta4] 无论是否删除或者替换layabox.ttf 都会直接crash 【有demo】 [ 64%]

...re 赞同来自: 我修改了2.2.0beta4的引擎,按照你的代码,将this改成Text,确实不会crash了,但是Label显示出屏幕了: 这个在浏览器上是正常的 2019-08-30 0 0 分享 微博 QZONE 微信 happyfire 赞同来自: 请问这个错误 JCFreeTypeFontRender::getBitmapD...

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

2654. 1.7.8版本Sprite3D.load问题 [ 64%]

...节点的子节点。 *@param url */ __proto.loadHierarchy=function(url){ this.addChild(laya.d3.core.Sprite3D.load(url)); } 这个函数也是会出问题的 2017-08-09 0 0 分享 微博 QZONE 微信 183*****755 赞同来自: 请使用最新版引擎,如果还有问题,留下简单复现示例 2...

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

2655. 文本-多行输入 [ 64%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } createInput() { const Input = Laya.Input; let inputText = new Input(); Laya.stage.addChild(inputText); //多行输入 inputText.multiline = true; inputText.wordWrap = true; inputText.size(350, 100); inpu...

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

2656. 程序当中更改适配模式后,没有生效成相对应的适配模式效果是为什么? [ 64%]

... 游戏内容当中,检测横竖屏: Laya.stage.on(Laya.Event.RESIZE, this, this.onResize); /** 更改适配*/ public onResize() { var stageWidth = Laya.Browser.clientWidth; var stageHeight = Laya.Browser.clientHeight; if (stageWidth < stageHeight) { console.log("one", Laya.stage.scaleMod...

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

2657. 图集制作与使用详解(TypeScript-IDE篇(TS)-使用IDE创作) [ 64%]

...用示例 Laya.loader.load("./res/atlas/test.atlas", Laya.Handler.create(this, this.onLoaded)); ``` `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文件的图集时,...

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

2658. 导入微信小游戏的时候 [ 64%]

... .lh file root type must be Sprite3D,please use other function to  load  this file.;at api readFile success callback function Error: Sprite3D: The .lh file root type must be Sprite3D,please use other function to  load  this file.     at Sprite3D.__proto.onAsynLoaded (http://127.0.0.1:65353/gam...

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

2659. 添加fairygui使用fairygui.UIPackage.addPackage ( "res/Bag" )后可以正常跑,发布到微信小游戏出错 [ 64%]

...        //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded));              Laya.loader.load             (                 [                     { url: "res/atlas/comp.atlas" , type: Loader.ATLAS },      ...

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

2660. 关于资源加载的问题 [ 64%]

....atlas"} ]; Laya.loader.load(loadArray, Handler.create(null, ()=>{ this.uiView = new SharkItOff(); Laya.stage.addChild(this.uiView); })); 先加载图集,图集加载完再new一个界面。但是界面里的图片都不显示 thekingreturn • 2018-03-27 20:42 [warn]Retry to load: games/g...

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