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

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

1191. [LayaAir3]Laya3.2.2版Spine 3.8,Spine2DRenderNode动画播放完毕后,playState返回不正确 [ 85%]

...enderNode.PAUSED   简单分析一下,_update 里调用了 stop(),将this._currentPlayTime = 0; 但是紧接着后面又将 this._currentPlayTime = state.getCurrentPlayTime(this.trackIndex); 此时 this._currentPlayTime 为非零,结果就是 if (this._currentPlayTime) return Spine2DRende...

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

1192. SCALE_FIXED_WIDTH适配屏幕的问题 [ 85%]

... _roomId = 0;         constructor(roomId?: number) {             this._roomId = roomId;             Laya.init(750, 1218, Laya.WebGL);             Laya.Browser.document.title = 'GG游戏;             if (Laya.Browser.onPC) {                 //设置舞台缩放模...

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

1193. 怎么把matter物理世界的左边界和右边界连在一起 [ 85%]

...的位置,可是圆移动过去不再继续向前飞,直接自由落体,if(this.ball.position.x<1) { this.ball.position={x:790,y:this.ball.position.y} } if(this.ball.position.x>799) { this.ball.position={x:10,y:this.ball.position.y} } 请问谁有什么刚好的办法实现我需要的这个...

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

1194. U3D导出模型和动画,动画无法正常播放,预览也没有,载入场景资源提示:this._cacheAnimationNode没有Transfrom [ 85%]

...,动画无法正常播放,预览也没有,载入场景资源提示:this._cacheAnimationNode没有Transfrom 环境:Unity 5.6.7f1, Laya 2.1, 插件:最新, 所有项目和资源都在附件里:U3D项目和Laya项目 动画控制器没用OverrideAnimator Rig为:Generic Avatar:Create F...

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

1195. list的_dataSource问题。 [ 85%]

list的_dataSource问题。 list.renderHandler = new Handler(this, this.onInitItem); list.array=[{a:1},{a:2}];   private onInitItem(item,index){}   在 onInitItem 中怎么得到他的数据?list.array 里面的那个 {a:1}   我看源码中有 _dataSource ,但是方法不是公开的。要...

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

1196. 在加载包含Animation的prefab后,动画没有显示 [ 85%]

...进预制体? Laya.loader.load("prefab/gk2v1.json",Laya.Handler.create(this,function(pref:Laya.Prefab){ var gkpref:Laya.Prefab = new Laya.Prefab(); gkpref.json = pref; var OBJ = Laya.Pool.getItemByCreateFun("gk2v1",gkpref.create,gkpref); this.Scene.addChild(OBJ); })); 附件 : --> ZMW.zip 2020-10-...

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

1197. core.js的版本控制 [ 85%]

...FileToDicData(FileManager.getPath(RunConfig.sourcePath,RunConfig.htmlFile),this.noVersionDic); LayaAirProjectPack.addFileToDicData(FileManager.getPath(RunConfig.sourcePath,"code.js"),this.noVersionDic); LayaAirProjectPack.addFileToDicData(FileManager.getPath(RunConfig.sourcePath,"main...

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

1198. 小程序开放域相关 [ 85%]

... Laya.stage.event(Event.MOUSE_DOWN); //                    this.rankView.list["_content"].event(Event.MOUSE_DOWN,null);                 }             } //                         function showRank(str:String = ""):void{               ...

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

1199. Laya2自动同步cullingMask方案以及灯光裁剪补丁 [ 85%]

...说明 1、在laya.d3.js中找到Camera.render函数 2、render函数中,this._prepareCameraToRender();这一行后面添加如下代码 if(this._scene.lightCullingMask && this._scene.lightCullingMask instanceof Function){this._scene.lightCullingMask(scene,this);} 3、对想要开启灯光...

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

1200. 天空盒显示会比原来的图片小很多 [ 85%]

...件里面的size字段不知道是做什么,反正改了也没用。   this.skyBox = new Laya.SkyBox(); this.mainCamera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; this.mainCamera.sky = this.skyBox; this.skyBox.textureCube = Laya.TextureCube.load("skybox/sky_sun.ltc");    {  "px": "sky_sun1.jpg...

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