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

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

3501. laya.d3的SimpleSingletonList 疑似逻辑问题 [ 50%]

...得的index是-1,SimpleSingletonList的remove会继续进过逻辑:   var end = this.elements[this.length]; this.elements[index] = end; end._setIndexInList(index);   这时候就会把队尾的元素插到下标-1那边。 这样的情况出现第二次以上时,就会把上一次被丢到...

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

3502. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 50%]

...loader.load("res/atlas/comp.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("comp/comp.png"); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage.addChild(sp); })); Laya.loader.load("res/atlas/test.atlas", Handler.create(this, function():void { ...

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

3503. 3d文字在浏览器能正常运行,打包后使用时会报错 [ 50%]

...er.createElement("canvas"); this.cav.width = 256; this.cav.height = 256;  var cxt = this.cav.getContext("2d"); cxt.fillStyle = 'rgb(' + '220' + ',' + '5' + ',5)'; cxt.font = "bold 50px 宋体"; cxt.textAlign = "center";//文本的对齐方式 cxt.textBaseline = "center";//文本相对于起点的...

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

3504. 请问下,分离模式里面扩展一个场景类,老是提示 Error: 'ui' is not exported [ 50%]

...ror: 'ui' is not exported  如果强行在layaMaxUI.js设置一个export var ui={};会提示TestSceneUI没定义。   demo在附件,TestSceneExtend就是继承的类。到底应该怎么写才不会报错呢? 2020-06-30 添加评论 已悬赏20元 --> 分享 微博 QZONE 微信 没有找到...

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

3505. Browser获取的运行环境信息,太不准确了吧? [ 50%]

...8 赞同来自: evamango         if (window.conch) {             var os = window.conch.config.getOS();             if (os == "Conch-ios") {                 origin = Game.ORIGIN.APP_IOS;             } else if (os == "Conch-android") {                 origin = Gam...

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

3506. Unity粒子特效导出的lh文件,使用了无法出现效果 [ 50%]

Unity粒子特效导出的lh文件,使用了无法出现效果 var particleRoot = Laya.Sprite3D.load("3d/LayaScene_Samples/Samples.lh"); scene.addChild(particleRoot); 这样使用lh文件,导出的文件中也只有这个文件。 编译正常没有报错,就是没有效果。   附件 : -->...

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

3507. Laya.loader.create 不会反馈失败状态跟描述不符合 [ 50%]

Laya.loader.create 不会反馈失败状态跟描述不符合 var resource:Array<string> = ["scene/Conventional/scene2.ls"] Laya.loader.create(resource, Laya.Handler.create(this, (success:boolean) => { console.log("3d加载完毕:" + success); }),Laya.Handler.create(this, (progress: number...

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

3508. 资源加载的Load和create有什么区别? [ 50%]

...和非二的幂次方图集区别在哪? IDE1.7.8 json图集加载问题 var 与 name 的详细区别是什么? laya2.0加载3d场景报错Uncaught TypeError: Cannot read property 'btCollisionObject' of undefined 请问下加载TFF字体要怎么加载呢? Laya.Handler.create和new Laya.Handle...

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

3509. 图片通过drawTexture平铺出现缝隙 [ 50%]

...te = new Sprite();         this.addChild(this.darwSprite);         var t: Texture = Laya.loader.getRes("load/0.png");         this.darwSprite.graphics.drawTexture(t,0,0);         this.darwSprite.graphics.drawTexture(t,176,0);         this.darwSprite.graphics.drawTexture(t,176*2,0...

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

3510. 怎么打开第二个工程 [ 50%]

...nt.CLICK,this,this.clickHandler); } private function clickHandler():void { var iframe:Object = Browser.document.createElement("iframe"); iframe.style.position ="absolute";//设置布局定位。这个不能少。 iframe.style.zIndex = 100;//设置层级 iframe.style.left ="100px"; iframe.style.top =...

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