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

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

2641. 如何实现3d遮罩效果? [ 64%]

...a1.addComponent(CameraMoveScript); } private function loadUI():void { var _this:D3Base_TargetTexture = this; Laya.loader.load(["../../../../res/threeDimen/ui/button.png"], Handler.create(null, function():void { var btn:Button = new Button(); btn.skin = "../../../../res/threeDimen/ui/b...

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

2642. 打包app,http无法设置content-type [ 64%]

...or, data?:any)=>void) { let req = new Request(); req.on(Event.COMPLETE, this, (data) => { cb(null, data); }); req.on(Event.ERROR, this, (err) => { console.error(err); cb(err); }); let body = data; let tp = typeof data if(tp === 'object' || tp === 'array'){ if(method === 'post' || method ===...

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

2643. exception info:[TypeError:undefined is not an object(evaluating'tInfo[0].attributes')] at line 764 [ 64%]

...Font();         blueFnt.loadFont("common/number_blue.fnt", new Handler(this, () => {             Laya.Text.registerBitmapFont("number_blue", blueFnt);         })); 但具体原因不清楚 能否请官方测试下bmfont在iphone上运行情况     2017-05-23 0 0 分享 微博 QZON...

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

2644. 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

2645. 小游戏对读取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

2646. 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

2647. 文本-多行输入 [ 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_示例 发布时间: 20251223

2648. [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

2649. 程序当中更改适配模式后,没有生效成相对应的适配模式效果是为什么? [ 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

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

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

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