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

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

51. LayaAir下加载阿拉伯TTF字体,手机上显示时左右顺序反了。 [ 77%]

... Arial";     Laya.loader.load("data/Questv1_Regular.ttf", Handler.create(this,onLoaded), null, Loader.BUFFER); }   private function onLoaded():void { var arr:ArrayBuffer=Laya.loader.getRes("data/Questv1_Regular.ttf");   if(arr && Browser.window.conch) { Browser.window.conch.setFontFaceFr...

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

52. js项目使用缓动类Tween报错 [ 77%]

... 代码如下 var Tww = laya.utils.Tween; to0(); function to0() { Tww.to(this.lis, { alpha: 0.5 }, 500, null, Handler.create(this, to1)); } function to1() { Tww.to(this.lis, { alpha: 1 }, 500, null, Handler.create(this, to0)); } 在AS中是没有问题的。 2018-05-24 添加评论 免费帖 --> 分...

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

53. [LayaAir2]字节小游戏物理的坐标不一样,碰撞盒会比laya的小,物理的位置也不一样 [ 76%]

...le(): void {         Laya.Physics.I.allowSleeping = false;         this.strWorldRoot= this.owner.scene.strWorldRoot;         Laya.Physics.I.worldRoot = this.strWorldRoot;     }     onUpdate(): void {         var playerPos=new Laya.Point(this.cameraPlayerOffset.x,this.cameraPlayer...

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

54. 1.5版本:3D Camera无法使用? [ 76%]

...请: 与内容相关的链接 提交 1 个回复 183*****755 赞同来自: this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; this.camera = (this.scene.addChild(new Laya.Camera(0, 1, 1000))) as Laya.BaseCamera; this.camera.transform.translate(new Vector3(0, 0, 500)); 这样用即可...

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

55. LIST renderHandler的ITEM高度自定义后,设置content变更其内部容器大小不生效 [ 76%]

...大小不生效 ViewActivityLimitedTask.prototype.initComp = function() { this.list_view.vScrollBarSkin = ""; this.list_view.scrollBar.elasticBackTime = ListConst.elasticBackTime; this.list_view.scrollBar.elasticDistance = ListConst.elasticDistance; this.list_view.renderHandler = new Laya.Handler(th...

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

56. [分享]微信小游戏声音资源批量加载卡住,临时解决方案 [ 76%]

...iniSound类中,增加函数           __proto.resetPlay=function(){ this._sound.stop(); this._sound.volume = 1; this._sound.offPlay(); }          2 在MiniSound类的onDownLoadCallBack函数中,this._sound.onError(MiniSound.bindToThis(this.onError,this));          这一句的后...

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

57. spine 推荐使用方式 [ 76%]

...     */     __proto.destroyTexture=function(){         if(this._mainTexture!=null){             this._mainTexture.disposeBitmap();         }         this._needRecoverTexture = true;     }     /**      * 恢复纹理      */     __proto....

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

58. 微信小游戏怎么加载本地的配置文件 [ 76%]

...戏怎么加载本地配置文件?在laya是可以 public initConfig(){ this.configAsset=[ {url:"res/config/playerCard.json",type:laya.net.Loader.TEXT} ]; Laya.loader.load(this.configAsset,Handler.create(this,this.loadConfigCallBack)) } public loadConfigCallBack(str:boolean){ if(str){ var config; ...

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

59. 导出微信小游戏 微信的api前面会自动加上文件夹名? view.wx.getSystemInfoSync() 怎么解决自动加"this. " 或者有时自动加上各种文件夹名? [ 76%]

...动加上文件夹名? view.wx.getSystemInfoSync() 怎么解决自动加"this. " 或者有时自动加上各种文件夹名? 导出微信小游戏 微信的api前面会自动加上文件夹名? view.wx.getSystemInfoSync() 怎么解决自动加"this. " 或者有时自动加上各种文件夹名?this....

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

60. 请问2.0射线到底如何使用呢? [ 76%]

...sicsSimulation这个类,但下面这么用一直没有东西,求指点 this.mousePos=new Vector2(MouseManager.instance.mouseX, MouseManager.instance.mouseY); camera.viewportPointToRay(this.mousePos,ray); this.ps.rayCast(ray,this.rayCastHit,500, 0); 2018-12-20 添加评论 免费帖 --> 分享 ...

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