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

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

1. 如何同时加载多个bmfont字体 [ 100%]

...res/bmfont/specialfont.fnt"], new Handler(this, this.loadbmfont)); private function loadbmfont():void{ Text.registerBitmapFont("123font", Constant.bmfont); Text.registerBitmapFont("critdamage", Constant.bmfont); Text.registerBitmapFont("enemydamage", Constant.bmfont); Text.registerBitmapFont("cure",...

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

2. 报错,这不是个构造函数 "StartPage is not a constructor" [ 89%]

... a constructor" StartPage: /**Created by the LayaAirIDE*/ var StartPage=(function(_super){ function StartPage(){ StartPage.__super.call(this); } Laya.class(StartPage,'view.StartPage',_super); return StartPage; })(StartPageUI) LayaSample: var LayaSample = (function(){ (function(){ Laya.init(667,3...

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

3. 鼠标 MOUSE_DOWN Event 回来的信息不符合 [ 84%]

...什么回来的是 “mouseout” 而不是 "mousedown" ? 代码如下: function createSprite() { picture = new Sprite(); picture.loadImage(picturePath); Laya.stage.addChild(picture); var texture = Laya.loader.getRes(picturePath); picturePath.pivot(texture.width / 2, texture.height / 2); picture.x...

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

4. 自己创建的box作为tab,为啥没有点击事件啊? [ 78%]

...omp.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() {     Laya.class(MyBoot, "MyBootClass", MyPage2UI);     var UI = new MyBootClass();     Laya.stage.addChild(UI); } function MyBoot() {     MyBoot.super(this);     this.MyTab.selectHandler ...

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

5. 版本管理 后缀可以自定吗? [ 78%]

...ginURL 源路径。 * @return 格式化后的新路径。 */ public static function addVersionPrefix(originURL:String):String { if (manifest && manifest[originURL]) { if (type == FILENAME_VERSION) return manifest[originURL]; return manifest[originURL] + "/" + originURL; } return originURL; }...

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

6. 位图字体生效 [ 76%]

...ont.loadFont("res/bitmapFont/test.fnt", new Laya.Handler(this, onLoaded)); function onLoaded(){ mBitmapFont.setSpaceWidth(10); Laya.Text.registerBitmapFont(mFontName,mBitmapFont); let txt = new Laya.Text(); txt.text='手机号 +86'; txt.color='#FFFFFF'; txt.font = mFontName;//===============代码...

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

7. 微信小游戏加载资源问题 [ 74%]

...分享一下呢? vvv123 • 2020-01-07 17:25 @星夜:window.wxMiniGame = function (exports, Laya) { 'use strict'; function DEB(str){ console.debug("[res]"+str); } class MiniFileMgr { static isLocalNativeFile(url) { for (var i = 0, sz = MiniAdpter.nativefiles.length; i < sz; i++) { if (u...

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

8. 请问用laya的tab模板创建的tab,为啥没有点击事件啊?而且tab标签点击后没有一直处于按下状态 [ 72%]

...栏.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() {     Laya.class(MyBoot, "MyBootClass", MyBootPage2UI);     UI = new MyBootClass();     Laya.stage.addChild(UI); } function MyBoot() {     MyBoot.super(this);          this.Boot.selectHa...

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

9. 音频无法播放 [ 72%]

...SoundManager.playMusic('res/sound/'+'fail'+'.wav',1, new Laya.Handler(null,function(){ alert('123') })); 在chrome下 提示图片这个警告,,,手机上也没有声音 附件 : --> 2018-04-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

10. 3D中如何限制角色的行走区域? [ 69%]

...ddComponent (/Users/admin/layaA4/layaA4/bin/js/bundle.js:39363:9)     at Function.Utils3D._createNodeByJson (/Users/admin/layaA4/layaA4/bin/js/bundle.js:31020:26)     at Function.Utils3D._createNodeByJson (/Users/admin/layaA4/layaA4/bin/js/bundle.js:31003:24)     at Function.Utils3D._createNod...

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