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

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

1601. TiledMap制作横板地图 报错 [ 49%]

... this.map.createMap("res/map/map.json",new Laya.Rectangle(0,0,Laya.Browser.width,Laya.Browser.height), Laya.Handler.create(this,this.onLoaded));报错的地方为:laya.tiledmap.js第178行: var tImageArray=relativePath.split("/");调试显示relativePath为undefined。 稍微跟踪了下,是14...

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

1602. 微信授权,获取用户信息的接口实现方法,wx.createUserInfoButton [ 48%]

... {                         left: wx.getSystemInfoSync().windowWidth/2-70,                         bottom: wx.getSystemInfoSync().windowHeight/2,                         width: 140,                         height: 40,                        ...

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

1603. rigidBody.applyForce 物体不会移动 [ 48%]

...aterial = material; //设置文本显示框位置 this.text.x = Laya.stage.width / 2 - 50; //显示文本显示框 this.text = new Laya.Text(); this.text.overflow = Laya.Text.HIDDEN; this.text.color = "#FFFFFF"; this.text.font = "Impact"; this.text.fontSize = 24; this.text.x = (Laya.stage.width / 5)...

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

1604. 怎么获取手机相册内容 [ 48%]

...put"); //设置file的样式 file.style="filter:alpha(opacity=0);opacity:0;width: 150px;height:60px;"; file.type ="file";//设置类型是file类型。 file.accept="image/png";//设置文件的格式为png; file.style.position ="absolute"; file.style.zIndex = 999; Browser.document.body.appendChild...

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

1605. 3d场景下面有张2d的图片,当鼠标焦点不在该网页时,2d图片为啥会闪动 [ 48%]

...reatRoom/background_bk.png");             sprite1.pos(Laya.stage._width-512,0);             sprite1.cacheAsBitmap = true;             Laya.stage.addChildAt(sprite1,0);     ////桌子 ///场景             scene = new Scene();             Laya.stage.addC...

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

1606. 点击拖动图片,当鼠标移出再移回舞台中时如何保持点击状态 [ 48%]

...显示对象的中心,显示位置在可拖拽区域之内 sp.pivot(sp.width/2,sp.height/2); sp.pos(250,450); Laya.stage.addChild(sp); //为需要滑动的对象添加down,down下开始move,up时移除move和up事件 sp.on(Event.MOUSE_DOWN,this,onDown); Laya.stage.on(Event.MOUSE_UP,this,onUp);...

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

1607. Laya下怎么实现复制 [ 48%]

...n.localToGlobal(new Laya.Point(this.lbtn.x,this.lbtn.y)); pt.x -=this.lbtn.width /2; pt.y -=120; var gd=GameData.userData; this.yqm.text=gd.invCode; this.dt.text="邀请次数 "+gd.invFriends+"/99" var iframe = Browser.document.createElement("iframe"); iframe.style.position ="absolute";//设置布...

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

1608. 物理引擎-Slingshot [ 48%]

... Laya.Render; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var stageWidth = 800; var stageHeight = 600; var Matter = window.Matter; var LayaRender = window.LayaRender; var mouseConstraint; var engine; (function() { Laya.init(stageWidth, stageHeight); Laya.stage.alignV = Stage.ALIGN_MIDDLE; La...

来源: Laya_示例 发布时间: 20260303

1609. Dragonbones龙骨动画 播放不同动作出现闪烁 混乱 [ 48%]

...this.templet.loadAni(this.aniUrl); this.maskBox.graphics.drawRect(0,0,this.width,this.height,'#ffffff'); this.mask = this.maskBox; this.maskBox.alpha=0; // this.show(); } private parseComplete():void { //创建模式为1,可以启用换装 this.skeleton =this.templet.buildArmature(1); this.skeleto...

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

1610. Laya.loader.load 教程代码出错 [ 48%]

...img.graphics.drawTexture(txture);             img.size(txture.width,txture.height);         }            } }    运行后在 LayaSample.max.js 692行提示异常if (!tex.loaded){ tex.once("loaded",this,this._textureLoaded,[tex,args]);  编辑了好几次,这个代...

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