diff --git a/Assets/YooAsset/Runtime/YooAssets.cs b/Assets/YooAsset/Runtime/YooAssets.cs
index 0e0338d..c6506b7 100644
--- a/Assets/YooAsset/Runtime/YooAssets.cs
+++ b/Assets/YooAsset/Runtime/YooAssets.cs
@@ -117,6 +117,15 @@ namespace YooAsset
private static OfflinePlayModeImpl _offlinePlayModeImpl;
private static HostPlayModeImpl _hostPlayModeImpl;
+
+ ///
+ /// 是否已经初始化
+ ///
+ public static bool IsInitialized
+ {
+ get { return _isInitialize; }
+ }
+
///
/// 异步初始化
///
@@ -522,7 +531,7 @@ namespace YooAsset
///
/// 资源类型
/// 资源的定位地址
- public static AssetOperationHandle LoadAssetSync(string location) where TObject : class
+ public static AssetOperationHandle LoadAssetSync(string location) where TObject : UnityEngine.Object
{
DebugCheckInitialize();
AssetInfo assetInfo = ConvertLocationToAssetInfo(location, typeof(TObject));
@@ -557,7 +566,7 @@ namespace YooAsset
///
/// 资源类型
/// 资源的定位地址
- public static AssetOperationHandle LoadAssetAsync(string location)
+ public static AssetOperationHandle LoadAssetAsync(string location) where TObject : UnityEngine.Object
{
DebugCheckInitialize();
AssetInfo assetInfo = ConvertLocationToAssetInfo(location, typeof(TObject));
@@ -602,7 +611,7 @@ namespace YooAsset
///
/// 资源类型
/// 资源的定位地址
- public static SubAssetsOperationHandle LoadSubAssetsSync(string location)
+ public static SubAssetsOperationHandle LoadSubAssetsSync(string location) where TObject : UnityEngine.Object
{
DebugCheckInitialize();
AssetInfo assetInfo = ConvertLocationToAssetInfo(location, typeof(TObject));
@@ -637,7 +646,7 @@ namespace YooAsset
///
/// 资源类型
/// 资源的定位地址
- public static SubAssetsOperationHandle LoadSubAssetsAsync(string location)
+ public static SubAssetsOperationHandle LoadSubAssetsAsync(string location) where TObject : UnityEngine.Object
{
DebugCheckInitialize();
AssetInfo assetInfo = ConvertLocationToAssetInfo(location, typeof(TObject));