コード例 #1
0
 /// <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)
         );
 }
コード例 #2
0
 /// <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)
         );
 }
コード例 #3
0
 /// <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)
         );
 }
コード例 #4
0
 /// <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)
         );
 }