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

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

2491. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 47%]

...platform.com/manifests/vM7nH0Kl.m3u8'); hls.attachMedia(video); hls.on(Hls.Events.MANIFEST_PARSED, function () { video.play(); }); } plyr.setup(video); ``` 编译运行代码,发现网页已经可以播放视频了。开发者可能注意到这里我们初始化引擎的时候是这样的: `Laya...

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

2492. 微信小游戏声音,使用playsound播放音效问题 [ 47%]

...: 不会啊!我测试了一下并没有你说的问题! this.stage.on(Event.MOUSE_UP, this, onB); private function onB():void          {             Laya.SoundManager.playSound("res/sound/onClick.wav");         } 你看看是不是你的代码逻辑有问题那? 2018-05-0...

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

2493. laya.d3.core.MeshRender [ 46%]

...gelaya.d3.coreClasspublic class MeshRenderInheritanceMeshRender BaseRender EventDispatcher ObjectSubclasses SkinnedMeshRender MeshRender 类用于网格渲染器。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By boundingBox : BoundBox[read-on...

来源: laya_api 发布时间: 20170929

2494. laya.d3.terrain.TerrainRender [ 46%]

....terrainClasspublic class TerrainRenderInheritanceTerrainRender BaseRender EventDispatcher Object MeshRender 类用于网格渲染器。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By bounds : Bounds[read-only] 获取包围盒,只读,不允...

来源: Laya2.0_api 发布时间: 20190513

2495. laya.ui.TextInput_API3.0 [ 46%]

...th addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayout fromParentPoint getBounds getChildAt getChildByName getChildIndex getCo...

来源: Laya3.0_api 发布时间: 20231115

2496. 浏览器接口 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

...nt, url);// 此处最好加延迟 //监听器注册 Laya.Browser.window.addEventListener("click", (event: any) => { console.log(event.type); }) Window.open() 方法、window.postMessage()方法、Window.addEventListener()方法 3.3 container 画布 LayaAir引擎里可以通过 Laya.Browser.contai...

来源: Laya3.0_文档 发布时间: 20251010

2497. image在相应loaded的时候,无法正确获取高度 [ 46%]

....engine.world, this.matterBody); this.matterBody.layaSprite = this; Matter.Events.on(GameMain.instance.engine, 'beforeUpdate', (()=> { console.log("update", this.x, this.y, this.width, this.height) }).bind(this)); } 第一个打印,this.height是没有形变时候的参数,只有执行了一...

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

2498. 物理引擎-Slingshot [ 46%]

...useConstraint, ground, pyramid, ground2, pyramid2, rock, elastic]); Matter.Events.on(engine, 'afterUpdate', function() { if (mouseConstraint.mouse.button === -1 && (rock.position.x > 190 || rock.position.y 190 || rock.position.y 190 || rock.position.y < 430)) { rock = Matter.Bodies.polygon(170, 450,...

来源: Laya_示例 发布时间: 20251223

2499. as3中如何定义html中的id参数 [ 46%]

...Texture color参数无效 怎样获取浏览器地址传过来的GET参数 event自定义事件的问题 dialog 自定义关闭效果,效果执行完,弹窗无法关闭 android 新版打包要求输入js或者json,而不是html路径 我应该如何处理 http 请求 once 的 回调参数,...

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

2500. 评论功能没用的吗? [ 46%]

...6 var staticMesh = Laya.Sprite3D.load("tlj/tlj.lh"); staticMesh.once(Laya.Event.HIERARCHY_LOADED, null, function (sprite) {       sprite.transform.position = new Laya.Vector3(0,0,-100); }); 在游戏中 调整模型的位置需要在场景加载完后进行操作! 2017-03-16 1 2 分享 微...

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