Class XRGeneralSettingsPerBuildTarget
Container class that holds general settings for each build target group installed in Unity.
Namespace: UnityEditor.XR.Management
Syntax
public class XRGeneralSettingsPerBuildTarget : ScriptableObject, ISerializationCallbackReceiver
Methods
OnAfterDeserialize()
Serialization override.
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Serialization override.
Declaration
public void OnBeforeSerialize()
SetSettingsForBuildTarget(BuildTargetGroup, XRGeneralSettings)
Set specific settings for a given build target.
Declaration
public void SetSettingsForBuildTarget(BuildTargetGroup targetGroup, XRGeneralSettings settings)
Parameters
Type | Name | Description |
---|---|---|
BuildTargetGroup | targetGroup | An enum specifying which platform group this build is for. |
XRGeneralSettings | settings | An instance of XRGeneralSettings to assign for the given key. |
SettingsForBuildTarget(BuildTargetGroup)
Get specific settings for a given build target.
Declaration
public XRGeneralSettings SettingsForBuildTarget(BuildTargetGroup targetGroup)
Parameters
Type | Name | Description |
---|---|---|
BuildTargetGroup | targetGroup | An enum specifying which platform group this build is for. |
Returns
Type | Description |
---|---|
XRGeneralSettings | The instance of XRGeneralSettings assigned to the key, or null if not. |
XRGeneralSettingsForBuildTarget(BuildTargetGroup)
Given a build target, get the general settings container assigned to it.
Declaration
public static XRGeneralSettings XRGeneralSettingsForBuildTarget(BuildTargetGroup targetGroup)
Parameters
Type | Name | Description |
---|---|---|
BuildTargetGroup | targetGroup | An enum specifying which platform group this build is for. |
Returns
Type | Description |
---|---|
XRGeneralSettings | The instance of XRGeneralSettings assigned to the key, or null if not. |