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

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

131. layaUI.max.all.js 这个文件怎么生成的? [ 61%]

...x":0,"y":0,"skin":"comp/bg.png","sizeGrid":"30,4,4,4","width":600,"height":400},"type":"Image"},{"props":{"x":41,"y":56,"skin":"comp/button.png","label":"点我赋值","width":150,"height":37,"sizeGrid":"4,4,4,4","var":"btn"},"type":"Button"},{"props":{"x":401,"y":56,"skin":"comp/clip_num.png","clip...

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

132. 官方文档里的位图字体的制作与使用JS 跑不通 以及 文档的几个问题 [ 61%]

.../) d.   6.完整代码如下所示:   //初始化引擎Laya.init(550,400);//自定义文件名称this.mFontName = "diyFont";this.mBitmapFont = new Laya.BitmapFont();//这里不需要扩展名,外部保证fnt与png文件同名this.mBitmapFont.loadFont("res/bitmapFont/test.fnt",new Laya.Handle...

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

133. 分享:intersects为何碰撞不准?碰撞框rectangle的坐标你设置对了吗? [ 61%]

...想着这方法真不错,以后我这个圆就算触发某种条件变到400*300的椭圆,我只要rectangle1.setTo(-200,-150,400,300);再sp1.setBounds(rectangle1);就完成了碰撞框的更新,完美!事实上骨骼也确实可以这么做。 然而人们往往看到的都是表面现象...

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

134. 字体描边和大图集 [ 61%]

字体描边和大图集 Laya.init(600,400 , Laya.WebGL);使用WebGL初始化的时候 Config.atlasEnable = false;设置不使用大图集的时候   文字的描边是这样的   设置使用大图集的时候描边是正常的 这个要怎么解决才能既不使用大图集,还能字体描...

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

135. laya.d3.utils.Physics3DUtils [ 61%]

...200[static] Physics3DUtils  COLLISIONFILTERGROUP_CUSTOMFILTER5 : int = 0x400[static] Physics3DUtils  COLLISIONFILTERGROUP_CUSTOMFILTER6 : int = 0x800[static] Physics3DUtils  COLLISIONFILTERGROUP_CUSTOMFILTER7 : int = 0x1000[static] Physics3DUtils  COLLISIONFILTERGROUP_CUSTOMFILTER8 : int = 0...

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

136. 音乐播放来回切换导致内存泄露 [ 60%]

...涨,然后GC回落。但是在手机QQ浏览器上,内存可以飙到400-600m,直至让浏览器崩溃。望官方针对上传的测试项目尽快能给个答复,项目因为这个问题现在无法发布对外。万谢。" rel="nofollow" target="_blank">http://ask.layabox.com/question/1...

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

137. 陀螺仪与加速计(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 60%]

...3) 下面演示获取旋转方位信息: ```typescript Laya.init(550, 400); this.info = new Laya.Text(); this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height);  Laya.stage.addChild(this.info);  Laya.Gyroscope.instance.on(Laya.Event.CHANGE, th...

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

138. 这个是什么问题 [ 60%]

...就换了个logo.png  大小是 1920 * 1080 的,用原来的一个970 * 400 没这个问题 2017-06-21 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 jiye 相关问题 发起问题须知,必看!!!不按提问规则的,官方...

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

139. 小游戏截图问题 [ 60%]

...idth: =inherit200, =inheritheight: =inherit150, =inheritdestWidth: =inherit400, =inheritdestHeight: =inherit300, =inheritsuccess: (res) = > { wx.shareAppMessage({ =inheritimageUrl: res.tempFilePath }) } })[/code]这是小游戏官方例子 这个canvas 我直接换成 Laya.Browser.canvas 报错...

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

140. IDE-显示IDE创建的界面 [ 60%]

...0"; } else { label.color = "#000000"; } } } // 程序入口 Laya.init(600, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //示例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }...

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