Table of Contents

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

assetBundleName string

Returns

string

GetBundleFileName(AssetBundleRuntimeInfo)

Gets the bundle file name within an asset pack.

public static string GetBundleFileName(AssetBundleRuntimeInfo info)

Parameters

info AssetBundleRuntimeInfo

Returns

string

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

packPath string
info AssetBundleRuntimeInfo

Returns

string

IsValidAssetPackName(string)

Validates an asset pack name against Google Play rules.

public static bool IsValidAssetPackName(string name)

Parameters

name string

Returns

bool

SanitizeAssetPackName(string)

Sanitizes an asset pack name to comply with Google Play rules.

public static string SanitizeAssetPackName(string name)

Parameters

name string

Returns

string