/// <summary> /// Gets a resource reference for the specified path. /// </summary> /// <param name="assetPath"> /// The path of the asset. /// </param> /// <returns> /// <c>null</c> if the asset is not in a <c>Resources</c> folder. /// </returns> public static ResourceReference GetResourceReference(string assetPath) { return( Mode == ResourceMapMode.Editor ? ResourceMapEditorAdaptor.GetResourceReference(assetPath) : ResourceMapPlayerAdaptor.GetResourceReference(assetPath) ); }
/// <summary> /// Gets the asset bundle name for the specified asset. /// </summary> /// <param name="assetGuid"> /// The guid of the asset. /// </param> /// <returns> /// <c>null</c> if the asset is not in asset bundle. /// </returns> public static string GetAssetBundleName(string assetGuid) { return( Mode == ResourceMapMode.Editor ? ResourceMapEditorAdaptor.GetAssetBundleName(assetGuid) : ResourceMapPlayerAdaptor.GetAssetBundleName(assetGuid) ); }
/// <summary> /// Gets the resource path of the specified asset. /// </summary> /// <param name="assetGuid"> /// The guid of the asset. /// </param> /// <returns> /// <c>null</c> if the asset is not in a <c>Resources</c> folder. /// </returns> public static string GetResourcePath(string assetGuid) { return( Mode == ResourceMapMode.Editor ? ResourceMapEditorAdaptor.GetResourcePath(assetGuid) : ResourceMapPlayerAdaptor.GetResourcePath(assetGuid) ); }
/// <summary> /// Gets a flag that indicates whether the resource map contains information about the specified asset. /// </summary> /// <param name="assetGuid"> /// The guid of the asset. /// </param> public static bool Contains(string assetGuid) { return( Mode == ResourceMapMode.Editor ? ResourceMapEditorAdaptor.Contains(assetGuid) : ResourceMapPlayerAdaptor.Contains(assetGuid) ); }