mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-14 07:37:06 +08:00
47 lines
1.1 KiB
C#
47 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using UnityExplorer.UI.Inspectors;
|
|
|
|
namespace UnityExplorer.UI.Main.Home
|
|
{
|
|
public class HomePage : BaseMenuPage
|
|
{
|
|
public override string Name => "Home";
|
|
|
|
public static HomePage Instance { get; internal set; }
|
|
|
|
public override MenuPages Type => MenuPages.Home;
|
|
|
|
public override bool Init()
|
|
{
|
|
Instance = this;
|
|
|
|
ConstructMenu();
|
|
|
|
new SceneExplorer();
|
|
|
|
new InspectorManager();
|
|
|
|
SceneExplorer.Instance.Init();
|
|
|
|
return true;
|
|
}
|
|
|
|
public override void Update()
|
|
{
|
|
SceneExplorer.Instance.Update();
|
|
InspectorManager.Instance.Update();
|
|
}
|
|
|
|
private void ConstructMenu()
|
|
{
|
|
GameObject parent = MainMenu.Instance.PageViewport;
|
|
|
|
Content = UIFactory.CreateHorizontalGroup(parent, "HomePage", true, true, true, true, 3, new Vector4(1,1,1,1)).gameObject;
|
|
}
|
|
}
|
|
}
|