Class BundleRuleBase
Base class for handling analyzing bundle rules tasks and checking dependencies
Inherited Members
Namespace: UnityEditor.AddressableAssets.Build.AnalyzeRules
Syntax
public class BundleRuleBase : AnalyzeRule
Properties
Name | Description |
---|---|
AllBundleInputDefs | |
CanFix | True if this rule can fix itself. If child class sets this to true, class must override FixIssues |
ExtractData | The BuildTask used to extract write data from the build. |
ResourcesToDependencies | A mapping of resources to a list of guids that correspond to their dependencies |
Results | Duplicate Results between Addressables and Player content. |
Methods
Name | Description |
---|---|
BuildAndGetResourceDependencies(AddressableAssetSettings, String[]) | Calculates and gathers dependencies for built in data. |
BuiltInResourcesToDependenciesMap(String[]) | Build map of resources to corresponding dependencies |
CalculateBuiltInResourceDependenciesToBundleDependecies(AddressableAssetSettings, String[]) | Calculate built in resources and corresponding bundle dependencies |
CalculateInputDefinitions(AddressableAssetSettings) | Generate input definitions and entries for AssetBundleBuild |
ClearAnalysis() | Clear all previously gathered bundle data and analysis |
ConvertBundleName(String, String) | Convert bundle name to include group name |
ConvertBundleNamesToGroupNames(AddressableAssetsBuildContext) | Use bundle names to create group names for AssetBundleBuild |
CreateUniqueBundle(AssetBundleBuild, Dictionary<String, String>) | Create new AssetBundleBuild |
FixIssues(AddressableAssetSettings) | Fixing method to be run on results of the RefreshAnalysis. If CanFix returns true, this method must be overriden. It is recommended that RefreshAnalysis caches any data that will be needed to fix. Fix should not rerun RefreshAnalysis before fixing. |
GetAllBundleDependencies() | Get dependencies from bundles |
GetBuildContext(AddressableAssetSettings) | Get context for current Addressables settings |
GetImplicitGuidsForBundle(String) | Get bundle's object ids that have no dependency file |
GetImplicitGuidToFilesMap() | Build map of implicit guids to their bundle files |
GetResourcePaths() | Gets an array of resource paths that are to be compared against the addressables build content |
IntersectResourcesDepedenciesWithBundleDependencies(List<GUID>) | Add Resource and Bundle dependencies in common to map of resources to dependencies |
IsValidPath(String) | Check path is valid path for Addressables entry |
RefreshAnalysis(AddressableAssetSettings) | Clear analysis and calculate built in content and corresponding bundle dependencies |
RefreshBuild(AddressableAssetsBuildContext) | Refresh build to check bundles against current rules |