Update Utils.cs

This commit is contained in:
ALEXTANG
2022-05-31 20:24:19 +08:00
parent 89a61a678d
commit 48406271d0

View File

@@ -143,7 +143,11 @@ namespace TEngine
static void LoadAsset<T>(Component component, string path, int index) where T : UnityEngine.Object
{
//TODO
if (component == null)
{
TLogger.LogException("component is null");
return;
}
if (string.IsNullOrEmpty(path))
{