Class AdaptivePerformancePackageMetadataStore
Provide access to the metadata store. Currently only usable as a way to assign and remove loaders to or from an AdaptivePerformanceManagerSettings instance.
Namespace: UnityEditor.AdaptivePerformance.Editor.Metadata
Syntax
[InitializeOnLoad]
public class AdaptivePerformancePackageMetadataStore
Methods
AssignLoader(AdaptivePerformanceManagerSettings, String, BuildTargetGroup)
Assigns a loader of type loaderTypeName to the settings instance. Will instantiate an instance if one can't be found in the user's project folder before assigning it.
Declaration
public static bool AssignLoader(AdaptivePerformanceManagerSettings settings, string loaderTypeName, BuildTargetGroup buildTargetGroup)
Parameters
Type | Name | Description |
---|---|---|
AdaptivePerformanceManagerSettings | settings | An instance of AdaptivePerformanceManagerSettings to add the loader to. |
String | loaderTypeName | The full type name for the loader instance to assign to settings. |
BuildTargetGroup | buildTargetGroup | The build target group being assigned to. |
Returns
Type | Description |
---|---|
Boolean | True if assignment succeeds, false if not. |
RemoveLoader(AdaptivePerformanceManagerSettings, String, BuildTargetGroup)
Remove a previously assigned loader from settings. If the loader type is unknown or an instance of the loader can't be found in the project folder, no action is taken.
Removal will not delete the instance from the project folder.
Declaration
public static bool RemoveLoader(AdaptivePerformanceManagerSettings settings, string loaderTypeName, BuildTargetGroup buildTargetGroup)
Parameters
Type | Name | Description |
---|---|---|
AdaptivePerformanceManagerSettings | settings | An instance of AdaptivePerformanceManagerSettings to add the loader to. |
String | loaderTypeName | The full type name for the loader instance to remove from settings. |
BuildTargetGroup | buildTargetGroup | The build target group being removed from. |
Returns
Type | Description |
---|---|
Boolean | True if removal succeeds, false if not. |