完成预览相关内容

This commit is contained in:
bob
2025-06-26 19:20:42 +08:00
parent 29d7836b66
commit 4febfadd56
12 changed files with 415 additions and 200 deletions

View File

@@ -9,6 +9,15 @@ namespace NBF
{
public override string UIPackName => "Tools";
public override string UIResName => "PreviewPanel";
public GameObject Instance { get; private set; }
public GameObject LoadModel(GameObject prefab)
{
Instance = Object.Instantiate(prefab);
Debug.LogError($"预制体:{prefab.name} 实例={Instance}");
Model.SetModel(Instance);
return Instance;
}
}
}