Class BundleRuleBase
Base class for handling analyzing bundle rules tasks and checking dependencies
Inherited Members
Namespace: UnityEditor.AddressableAssets.Build.AnalyzeRules
Assembly: Unity.Addressables.Editor.dll
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 |
GetImplicitGuidToFilesMap() | Build map of implicit guids to their bundle files |
GetImplicitGuidsForBundle(string) | Get bundle's object ids that have no dependency file |
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 |