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

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

241. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 54%]

...("skyBox/skyCube.ltc"); camera.sky = sky; } private _sprite3dURl:string = "LayaScene_ActionCheck/ActionCheck.lh"; wky379937316 • 2018-03-19 21:08 这是什么情况呢?是引擎不支持场景吗?如果能解决,请给一个解决方案,谢谢 涛涛~ • 2019-07-06 16:...

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

242. 无法触发浏览器文件上传框 [ 53%]

... // 程序入口 class GameMain { private btn: Laya.Button; private skin: string = 'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); ...

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

243. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 53%]

...始化引擎 Laya.init(600, 400); Laya.stage.bgColor ="#cccccc"; var data:String= "data:image/svg+xml,"+'' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp:Sprite = new Sprite(); sp.loadImage(data,0,0,200,200); Laya.stage.addChild(sp); } } } ``` 通过data来当做url传递给loadImage...

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

244. laya.d3.core.particleShuriKen.ShuriKenParticle3D [ 53%]

... MAXCOLOROVERLIFEGRADIENTCOLORS : int[static] ShuriKenParticle3D name : String节点名称。Node numChildren : int[read-only] 子对象数量。 Node parent : Node[read-only] 父节点。Node  particleRenderer : ShurikenParticleRenderer[read-only] 获取粒子渲染器。 ShuriKenParticle3D ...

来源: Laya2.0_api 发布时间: 20190513

245. laya.ui.FontClip [ 52%]

...chy : Boolean[read-only] 获取在场景中是否激活。 Node  align : String水平对齐方式FontClip alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值...

来源: Laya2.0_api 发布时间: 20190513

246. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 51%]

...||data.url == "test/3.png"){ mark ++; console.log("------data.url:" + JSON.stringify(data.url)); if(mark == 4)//确认数据全部接收后 Laya.loader.load(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); }else { Laya.lo...

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

247. Animation创建和销毁的问题 [ 51%]

...false          */         public static function clearRes(url:String, forceDispose:Boolean = false):void { Loader.clearRes清理你把里面的第二个参数设置成false试试 如果还是不行的话你就把资源清理方法改用一下这个方法!还有如果你的图片小于5...

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

248. 更新到1.7.6beta之后,HBox有bug [ 51%]

... = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var skin: string; switch (i) { case 0: skin = "comp/bg.png"; break; case 1: skin = "comp/blank.png"; break; case 2: skin = "comp/btn_close.png"; break; case 3: skin = "comp/button.png"; break; case 4: skin = "comp/checkbox.png"; break;...

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

249. laya.ui.AdvImage [ 51%]

...获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 UIComponent cacheAs : String 指定显示对象...

来源: Laya2.0_api 发布时间: 20190513

250. SCALE_FIXED_WIDTH适配屏幕的问题 [ 50%]

...       }         private getGets() {             var tempUrl: String = Laya.Browser.window.location.href;             var u = tempUrl.split("?");             var gets: Object = {};             if (u[1]) {                 u = u[1].split("&");           ...

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