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

大约有 3,085 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0057 秒)

3001. [0]Laya3.0.3 的VideoNode不支持在微信浏览器中播放 [ 42%]

...let video = this.scene.getChildByName('VideoNode') as Laya.VideoNode; Laya.stage.on(Laya.Event.MOUSE_DOWN,this, ()=>{ console.error('Laya.Event.MOUSE_DOWN'); video.play(); }); 很简单的结构,只有在微信上播放不了 1677851971用户 • 2024-03-16 19:56 测试可以播放了,就是...

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

3002. 单机版app构建后在 android studio 中无法访问网络 [ 42%]

...1-16 16:35 但是横竖屏不是在截图上已经看到了么,laya中有stage.screenMode, android 中已有screenOrientation="portrait" 项目 链接: https://pan.baidu.com/s/1eStShyi 密码: kq6d 主要为导出android studio 做二次开发用。 Hatt • 2017-11-15 16:52 标题已...

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

3003. 动画挂点(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 42%]

.../Conventional/SceneMonkey.ls",Laya.Handler.create(this,function(res){ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this,...

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

3004. 动画挂点(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 42%]

.../Conventional/SceneMonkey.ls",Laya.Handler.create(this,function(res){ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this,...

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

3005. 射线检测报错,outHitInfo.sprite3D=null; [ 42%]

...Laya.Vector3.ZERO); this.phasorSprite3D = new Laya.PhasorSpriter3D(); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.onMouseDown); }  private onMouseDown():void{ this.camera.viewportPointToRay(new Laya.Vector2(Laya.MouseManager.instance.mouseX,Laya.MouseManager.instance.mouseY),this.ray); Laya.Physi...

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

3006. Panel初始化BUG [ 42%]

....onResReady)); } private onResReady() { let panel = new Laya.Panel(); Laya.stage.addChild(panel); panel.graphics.drawRect(0, 0, 300, 300, "#ffcccc"); panel.width = 300; panel.height = 300; panel.pos(200, 300); let image = new Laya.Image(); image.skin = "comp/image.png"; image.pos...

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

3007. 关于近期iOS提交,因违反苹果3.1.1导致APP上架被拒的说明 [ 42%]

...und没有声音 设置遮罩会导致内存大大增高 使用Laya3Dinit和Stage裁切模式导致按钮判定区偏移 laya2.0调用scene.gc方法,再次加载同一份资源时候,会导致gpu内存不断增加! iOS 重新初始化引擎 问题状态 最新活动: 2020-11-26 15:50 浏览: 12...

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

3008. 使用百度地图显示当前位置(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 42%]

....body.appendChild(mapDiv);       // 适应窗口尺寸 refit(); Laya.stage.on(Event.RESIZE, this, refit);   // 初始化地图 map = new BMap.Map(mapDiv);   // 禁用部分交互 //map.disableDragging(); map.disableKeyboard(); map.disableScrollWheelZoom(); map.disableDoubleClickZoom()...

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

3009. 小游戏子域程序加载到图集后,取图集内资源报错。 [ 42%]

...{ trace("加载成功"); var c:Image = new Image("rank/country.png"); Laya.stage.addChild(c); }  以上是子域项目中加载图集和取资源的代码。代码是参照 https://ask.layabox.com/question/15086 这个帖子的。 图集加载是ok的,但是这样new Image("rank/country.png");...

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

3010. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 42%]

...ional/SceneMonkey.ls",Handler.create(this,function(res:Scene3D):void{ Laya.stage.addChild(res); //用于挂点的精灵 var box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.cre...

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