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

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

2551. Laya.loader.create中的progress回调好像不准确? [ 43%]

...ing progress : " + pro); }, null, false), Laya.Scene); Laya.loader.on(Event.ERROR, this, function (err) { if (debug) console.log("Loading error : " + err); }); } return LayaAir3D; } ()); LayaAir3D(); Monica • 2018-03-21 11:39 我这边写的例子正常 jinfawu • 2018-03-21 12:41 ...

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

2552. 仿照laya官方demo做了一个视频播放的UI,为啥在微信里不能用? [ 43%]

...a设置Video的位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, fitDOM); let viewIns = this; function goGameWorld() { videoElmt.pause(); Laya.stage.removeChild(reference); Laya.Browser.removeElement(videoElmt); // Laya.Browser.document.body.removeChild(videoElmt); Laya...

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

2553. 添加或修改物理ChainCollider属性points时,报错 [ 43%]

...码,改写的,点击2次场景就会报错。: onStageClick(e: Laya.Event): void { //停止事件冒泡,提高性能,当然也可以不要 e.stopPropagation(); //舞台被点击后,使用对象池创建子弹 let flyer: Laya.Sprite = Laya.Pool.getItemByCreateFun("bullet", this....

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

2554. laya.d3.core.render.BaseRender [ 43%]

...ackagelaya.d3.core.renderClasspublic class BaseRenderInheritanceBaseRender EventDispatcher ObjectImplements laya.resource.ISingletonElement, laya.d3.core.scene.IOctreeObjectSubclasses MeshRenderer, PixelLineRenderer, ShurikenParticleRenderer, TerrainRender, TrailRenderer Render 类用于渲染器的...

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

2555. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 43%]

... false=不循环 clipPath=动画资源路径 this.iceMonsterAni.once(Laya.Event.COMPLETE, this, () => { this.iceMonsterAni.visible = false; }); } } 你看看。 LayaAir小牛 • 2025-12-22 15:41 @ZmySir:可以把项目打包发一个demo吗 ZmySir • 2025-12-22 16:18 demo怎么发给你? Laya...

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

2556. Laya3D.init(0, 0, true) 初始化的时候。android端和ios端表现不一样。stage初始化之后stage的宽高在什么时候能获取到准确的值? [ 43%]

...。 每当stage的大小进行变化时,会触发事件。 Laya.stage.on(Event.RESIZE, this, function():void { // To Do - UI.pos });   2017-06-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 sfsmmc 相关问题 Layabox 2.0 bate5 运...

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

2557. laya.d3.core.particleShuriKen.ShurikenParticleRenderer [ 43%]

...ass ShurikenParticleRendererInheritanceShurikenParticleRenderer BaseRender EventDispatcher Object ShurikenParticleRender 类用于创建3D粒子渲染器。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By  bounds : Bounds[override] [read-only...

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

2558. 无法触发浏览器文件上传框 [ 43%]

...te(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private createBtn(skin: string): Laya.Button { let button = new Laya.Button(skin, '上传文件'); button.labelSize = 12; button.labelColors = '#000000,#000000,#0000...

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

2559. laya.d3.core.SkinnedMeshRenderer [ 43%]

... SkinnedMeshRendererInheritanceSkinnedMeshRenderer MeshRenderer BaseRender EventDispatcher Object SkinMeshRenderer 类用于蒙皮渲染器。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By  bones : Vector.<Sprite3D>[read-only] 用于...

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

2560. 我浏览在线文档 关于共享材质和自身材质的代码 貌似没有什么不同? [ 43%]

...uck.lh"); //模型与材质加载完成监听与回调 this.role3D.on(Laya.Event.HIERARCHY_LOADED,this,this.onLoadComplete); this.scene.addChild(this.role3D); //模型与材质加载完成后回调 private onLoadComplete():void{ //获取车身模型(查看.lh文件,模型中两个对象,车头...

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