Class PADUtil
- Namespace
- TAssetBundle.Plugin.PlayAssetDelivery
- Assembly
- TAssetBundle.Plugin.PlayAssetDelivery.dll
public static class PADUtil
- Inheritance
-
PADUtil
- Inherited Members
Methods
GenerateAssetPackName(string)
Generates an asset pack name from an asset bundle name. e.g. "bundles/characters/hero" -> "bundles_characters" Google Play rules: must start with letter, only [a-zA-Z0-9_] allowed.
public static string GenerateAssetPackName(string assetBundleName)
Parameters
assetBundleNamestring
Returns
GetBundleFileName(AssetBundleRuntimeInfo)
Gets the bundle file name within an asset pack.
public static string GetBundleFileName(AssetBundleRuntimeInfo info)
Parameters
Returns
GetBundleFilePath(string, AssetBundleRuntimeInfo)
Gets the full path to a bundle file within an asset pack directory.
public static string GetBundleFilePath(string packPath, AssetBundleRuntimeInfo info)
Parameters
packPathstringinfoAssetBundleRuntimeInfo
Returns
IsValidAssetPackName(string)
Validates an asset pack name against Google Play rules.
public static bool IsValidAssetPackName(string name)
Parameters
namestring
Returns
SanitizeAssetPackName(string)
Sanitizes an asset pack name to comply with Google Play rules.
public static string SanitizeAssetPackName(string name)
Parameters
namestring