Q:如果AssetBundle禁用了TypeTree,Unity在加载的时候会对其引用的脚本进行“签名”校验(Property Hash和FulIName),而包内的脚本信息只在打包的时候生成,并不能直接更新。因此,在禁用TypeTree的时候,貌似不能对可序列化脚本进行变动更新。 于是,想要咨询两个问题: 1、包内的脚本“签名”信息存放在哪里,存放了什么内容?
AssetDatabase.GetImplicitAssetBundleName public static string GetImplicitAssetBundleName (string assetPath); パラメーター assetPath The asset's path. 戻り値 string Returns the name of the AssetBundle that a given asset belongs to. See the method description for more details. 説明 指定のアセ...
AssetDatabase.GetAssetBundleDependencies public static string[]GetAssetBundleDependencies(stringassetBundleName, boolrecursive); パラメーター assetBundleNameThe name of the AssetBundle for which dependencies are required. recursiveIf false, returns only AssetBundles which are direct dependencies of the input...
AssetDatabase.GetImplicitAssetBundleVariantName public static string GetImplicitAssetBundleVariantName (string assetPath); パラメーター assetPath The asset's path. 戻り値 string Returns the name of the AssetBundle Variant that a given asset belongs to. See the method description for more details...
AssetDatabase.GetAssetBundleDependencies public static string[] GetAssetBundleDependencies (string assetBundleName, bool recursive); 参数 assetBundleName 需要依赖项的 AssetBundle 的名称。 recursive 如果为 false,仅返回其为输入直接依赖项的 AssetBundle;如果为 true,则包含输入的所有间接依赖项。 返回 string[...
语言:中文 AssetDatabase.GetAssetPathsFromAssetBundle public static string[]GetAssetPathsFromAssetBundle(stringassetBundleName); 描述 获取已标有给定 assetBundle 名称的资源的路径。 所有路径均是相对于项目文件夹的路径,例如:"Assets/MyTextures/hello.png"。
AssetDatabase.GetAssetPathsFromAssetBundle public static string[]GetAssetPathsFromAssetBundle(stringassetBundleName); 描述 返回一个数组,其中包含使用指定资源包名称标记的所有资源的路径。 返回的所有路径均相对于项目文件夹,例如如果向资源包添加了“hello.png”,则返回“Assets/MyTextures/hello.png”。
AssetDatabase.RemoveUnusedAssetBundleNames public static voidRemoveUnusedAssetBundleNames(); 描述 删除资源数据库中所有未使用的 assetBundle 名称。 using System.Linq; using UnityEngine; usingUnityEditor; public class AssetDatabaseExamples :MonoBehaviour{ [MenuItem("AssetDatabase/Remove UnusedAssetBundles")] ...
assetBundleName The assetBundle name you want to remove. forceRemove Flag to indicate if you want to remove the assetBundle name even it's in use. Description Remove the assetBundle name from the asset database. The forceRemove flag is used to indicate if you want to remove it even it's ...
public class GetAssetPathsFromAssetBundleExample :MonoBehaviour{ [MenuItem("APIExamples/GetAssetPathsFromAssetBundle")] static void GatherAllAssetsInAssetBundles() { string[] allAssetBundles =AssetDatabase.GetAllAssetBundleNames(); List<string> allAssetsInAnAssetBundle = new List<string>(); for (...