大约有 3,990 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0066 秒)
Laya_社区(2836) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(55)
...得的index是-1,SimpleSingletonList的remove会继续进过逻辑: var end = this.elements[this.length]; this.elements[index] = end; end._setIndexInList(index); 这时候就会把队尾的元素插到下标-1那边。 这样的情况出现第二次以上时,就会把上一次被丢到...
来源: Laya_社区 发布时间: 20220707
...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
...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
...ror: 'ui' is not exported 如果强行在layaMaxUI.js设置一个export var ui={};会提示TestSceneUI没定义。 demo在附件,TestSceneExtend就是继承的类。到底应该怎么写才不会报错呢? 2020-06-30 添加评论 已悬赏20元 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20200630
...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
Unity粒子特效导出的lh文件,使用了无法出现效果 var particleRoot = Laya.Sprite3D.load("3d/LayaScene_Samples/Samples.lh"); scene.addChild(particleRoot); 这样使用lh文件,导出的文件中也只有这个文件。 编译正常没有报错,就是没有效果。 附件 : -->...
来源: Laya_社区 发布时间: 20170227
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
...和非二的幂次方图集区别在哪? 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
...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
...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