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

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

11. laya.display.Scene_API3.0 [ 65%]

...Protected All Inherited Externals Only exported Menu Globals "laya/display/Scene" Scene Class Scene 场景类,负责场景创建,加载,销毁等功能 场景被从节点移除后,并不会被自动垃圾机制回收,如果想回收,请调用destroy接口,可以通过unDestroyedScenes...

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

12. 预制体模块 · LayaAir3文档 · LAYABOX [ 65%]

...pe : Laya.Camera } ) private camera: Laya.Camera; @property( { type : Laya.Scene3D } ) private scene: Laya.Scene3D; onStart() { console.log("Game start"); //加载预制体文件 Laya.loader.load("resources/Prefab.lh").then( (res)=>{ //创建预制体 let monkey: Laya.Sprite3D = res.create(); //...

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

13. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

...pe : Laya.Camera } ) private camera: Laya.Camera; @property( { type : Laya.Scene3D } ) private scene: Laya.Scene3D; onStart() { console.log("Game start"); //加载预制体文件 Laya.loader.load("resources/Prefab.lh").then( (res)=>{ //创建预制体 let monkey: Laya.Sprite3D = res.create(); //...

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

14. Cannot read property 'load' of null [ 64%]

...知道大天使之剑H5的选服界面和load界面的实现原理么? scene场景open或者load失败以后没有回调通知,代码中无法知道是成功还是失败了, 如果是线上玩家那不是直接就卡在那里不动了 iOS 接入微信登录,配置了"Other Linker Flags"中...

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

15. laya.ui.View [ 63%]

... | Methods | Events Packagelaya.uiClasspublic class ViewInheritanceView Scene Sprite Node EventDispatcher ObjectSubclasses Dialog, MoreGame View 是一个视图类,2.0开始,更改继承至Scene类,相对于Scene,增加相对布局功能。 Public Properties Hide Inherited Public Properti...

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

16. laya.ui.MoreGame [ 63%]

...| Events Packagelaya.uiClasspublic class MoreGameInheritanceMoreGame View Scene Sprite Node EventDispatcher Object 游戏中心插件 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInH...

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

17. laya.ui.Dialog_API3.0 [ 60%]

...View Dialog Index Constructors constructor Properties _extra _ownGraphics _scene _scene3D _skinBaseUrl _url autoDestroyAtClosed autoSize closeEffect closeHandler closeType group hitTestPrior isModal isPopupCenter isShowEffect mouseThrough name popupEffect tag CANCEL CLOSE NO OK SURE YES drawtocanvCt...

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

18. 3D场景环境设置 · LayaAir3.3 · 引擎文档 · LAYABOX [ 58%]

...3D视图。 在LayaAir3.0引擎中,3D和2D可以混合使用,创建的Scene 3D场景和Scene 2D容器或元素可以同时加载到舞台上。 下面我们先来了解一个3D场景的参数都有哪些,为了让一个3D场景达到一个好的效果,都需要考虑的因素。我们通过...

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

19. laya.ui.DialogManager [ 55%]

...置为负数,可以实现垂直反转效果,比如scaleX=-1。Sprite scene : *[read-only] 获得所属场景。 Node scrollRect : Rectangle 显示对象的滚动矩形范围,具有裁剪效果(如果只想限制子对象渲染区域,请使用viewport) srollRect和viewport的区别: 1.sro...

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

20. 2D寻路 · LayaAir3.3 · 引擎文档 · LAYABOX [ 52%]

....Sprite; //sprite.cache = true; this._temp = new Laya.Sprite(); this.owner.scene.addChild(this._temp); this.findCompents(this._allAgent, sprite.scene, Nav2DAgent); } onMouseClick(evt: Laya.Event): void { let pos = new Laya.Vector2(evt.stageX, evt.stageY); console.log("click", pos); this._temp.graphi...

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