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

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

1201. 发布安卓包对接穿山甲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

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

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

1204. LAYABOX游戏实时语音之APP版本 [ 85%]

....getInstance().uninit(); } public void login( final String userId){ that = this;//反射需要指定的对像,在抛到主线程后this的对像不一样了,先把他用that存这,如果你们有更好的办法可以说下,我是临时用两天时间边学边做,不太懂JAVA(PS:压根...

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

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

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

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

1207. [LayaAir3]LAYAAIR 3.3 和 LAYANATIVE 的VIDEO 支持 M3U8文件吗? [ 85%]

...a(video); hls.on(HLS.Events.MEDIA_ATTACHED, () => { video.muted = true; this.playVideo(); }); hls.on(HLS.Events.ERROR, (event, data) => { console.log("HLS加载失败"); }); hlsxx = hls;//方便销毁用hlsxx.destroy(); }else if(videoTexture.canPlayType("m3u8")){ this.playVideo(); videoTexture...

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

1208. 3D模型x方向角度不为0,时。挂刚体和碰撞器。在rotate y方向时。模型会乱转,不挂就没问题 [ 85%]

...就没问题   模型x转了-90度   console.log(angle, " lastangel ", this.owner.transform.rotationEuler.y) this.lastAngle = this.owner.transform.rotationEuler.y; this.owner.transform.rotate(new Vector3(0, angle - this.lastAngle, 0), false, false) 打印出来看到y方向角度一直在变。  ...

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

1209. 2.0 beta3 物理 DestroyJoint 报错 [ 85%]

...到box2d.b2World.prototype.DestroyJoint 在下面两行代码之前添加this.m_jointCount判断 box2d.ENABLE_ASSERTS && box2d.b2Assert(0 < this.m_jointCount); --this.m_jointCount;   完整代码如下: box2d.b2World.prototype.DestroyJoint = function(a) {     box2d.ENABLE_ASSERTS &am...

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

1210. 关于雾化影响粒子特效的问题 [ 85%]

...关于雾化影响粒子特效的问题     openFlog() {         this.gamesConfig.fightScene.enableFog = true;         this.gamesConfig.fightScene.fogColor = this.flogColor         this.gamesConfig.fightScene.fogStart = 20               this.gamesConfig.fightScen...

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