diff --git a/Assets/TEngine/Runtime/Unitity/Utils.cs b/Assets/TEngine/Runtime/Unitity/Utils.cs index 33b78890..31206b07 100644 --- a/Assets/TEngine/Runtime/Unitity/Utils.cs +++ b/Assets/TEngine/Runtime/Unitity/Utils.cs @@ -143,7 +143,11 @@ namespace TEngine static void LoadAsset(Component component, string path, int index) where T : UnityEngine.Object { - //TODO + if (component == null) + { + TLogger.LogException("component is null"); + return; + } if (string.IsNullOrEmpty(path)) {