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

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

1191. 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

1192. 在加载包含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

1193. 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

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

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

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

1195. 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

1196. 天空盒显示会比原来的图片小很多 [ 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

1197. 发布安卓包对接穿山甲banner广告问题 [ 85%]

...ntView设置为activity_main,laya的gameView添加到RelativeLayout来。this.setContentView(R.layout.activity_main); this.gameContainer = findViewById(R.id.game_container); this.banner_container = findViewById(R.id.banner_container); View gameView = mPlugin.game_plugin_get_view(); this.gameContai...

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

1198. drawTexture 画出来的数据会有以前的数据 [ 85%]

...th = 1280; iconSpr.height = 640; iconSpr.addChild(img); btn.on(Event.CLICK,this,runGame1); } private function runGame1():void { xNum = Math.random()*7 - 3; yNum = Math.random()*7 - 3; Laya.timer.loop(20,this,onRun); Laya.timer.frameLoop(10,this,refresh); } private function refresh():void { IconSpr.g...

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

1199. 2.12.1.beta cannon.js 中 applyforce 无效Bug的补丁。 [ 85%]

...限嵌套。 修复如下      get angularVelocity() {         if (this._btColliderObject) {             var phtqua = this._btColliderObject.angularVelocity;  -           this.angularVelocity.setValue(phtqua.x, phtqua.y, phtqua.z);  +          this._angularVelocity.setValue...

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

1200. bitmapFont.loadFont()加载多个地址导致位图输出重 [ 85%]

...t.loadFont()加载多个地址导致位图输出重 构造函数中是 this.setDataByTextureList("\n6+", ["res/fontadd/num6.fnt","res/fontadd/num+.fnt"]);     private setDataByTextureList(value:string, urls:string[]){ for(var i=0;i<urls.length;i++){ var bitmapFont: BitmapFont = new BitmapFo...

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