Class XRPackageMetadataStore
Provide access to the metadata store. Currently only usable as a way to assign and remove loaders to/from an XRManagerSettings instance.
Namespace: UnityEditor.XR.Management.Metadata
Syntax
public class XRPackageMetadataStore : object
Methods
AssignLoader(XRManagerSettings, String, BuildTargetGroup)
Assigns a loader of type loaderTypeName to the settings instance. Will instantiate an instance if one can't be found in the users project folder before assigning it.
Declaration
public static bool AssignLoader(XRManagerSettings settings, string loaderTypeName, BuildTargetGroup buildTargetGroup)
Parameters
Type | Name | Description |
---|---|---|
XRManagerSettings | settings | An instance of XRManagerSettings 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(XRManagerSettings, 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(XRManagerSettings settings, string loaderTypeName, BuildTargetGroup buildTargetGroup)
Parameters
Type | Name | Description |
---|---|---|
XRManagerSettings | settings | An instance of XRManagerSettings 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. |