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

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

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

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

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

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

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

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

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

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

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

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

1207. 为什么手机端网页播放8k的音频要点一下才能播放,因为下载慢吗,电脑端网页都不用 [ 85%]

...示例,SoundManager.playSound("../../res/sounds/btn.mp3", 1, new Handler(this, this.onComplete));初始化的时候有load资源Laya.loader.load(this.soundPath, Handler.create(this, this.setup)); 2019-08-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

1208. Unity导出.lm文件,laya读取并显示,但是改变不了position [ 85%]

...es/LayaScene_Alien/Assets/FBXs_Stacy/EnvArctic_alien-EnvArctic_alien.lm"); this.meshSprite3D = new Laya.MeshSprite3D(tempmodels); scene.addChild(this.meshSprite3D); this.meshSprite3D.transform.position.x = 0; this.meshSprite3D.transform.position.y = 0; this.meshSprite3D.transform.position.z = 10;  ...

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

1209. List属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 85%]

...= Laya.Image; var WID = 373, HEI = 85; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.Stage; var List = Laya....

来源: Laya2.0_文档 发布时间: 20210714

1210. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 85%]

...test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); }else { Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onComplete)); } ​ } ​ onComplete(): void { //初始化rank排行榜 var rank = new BigRank(); //初始...

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