大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0159 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...enderNode.PAUSED 简单分析一下,_update 里调用了 stop(),将this._currentPlayTime = 0; 但是紧接着后面又将 this._currentPlayTime = state.getCurrentPlayTime(this.trackIndex); 此时 this._currentPlayTime 为非零,结果就是 if (this._currentPlayTime) return Spine2DRende...
来源: Laya_社区 发布时间: 20241202
... _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
...的位置,可是圆移动过去不再继续向前飞,直接自由落体,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
...,动画无法正常播放,预览也没有,载入场景资源提示:this._cacheAnimationNode没有Transfrom 环境:Unity 5.6.7f1, Laya 2.1, 插件:最新, 所有项目和资源都在附件里:U3D项目和Laya项目 动画控制器没用OverrideAnimator Rig为:Generic Avatar:Create F...
来源: Laya_社区 发布时间: 20190809
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
...进预制体? 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
...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
... Laya.stage.event(Event.MOUSE_DOWN); // this.rankView.list["_content"].event(Event.MOUSE_DOWN,null); } } // function showRank(str:String = ""):void{ ...
来源: Laya_社区 发布时间: 20180525
...说明 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
...件里面的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