UGUI代码导出工具
This commit is contained in:
@@ -5,6 +5,7 @@ namespace CreatGame.UI
|
||||
{
|
||||
public class UIMainView : UIViewBase
|
||||
{
|
||||
public override string PrefabPath => "Prefabs/UI/MainView";
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
|
||||
@@ -25,6 +25,7 @@ namespace CreatGame.UI
|
||||
public UIViewBase OpenView<T>(UILayer layer) where T : UIViewBase , new()
|
||||
{
|
||||
var view = new T();
|
||||
//加载预制件
|
||||
|
||||
view.InitView();
|
||||
return view;
|
||||
|
||||
Reference in New Issue
Block a user