Skip to main content

Class Settings<TSelf, TCollection>

Base class for project/user settings per build target.

public abstract class Settings<TSelf, TCollection> : ScriptableObject where TSelf : Settings<TSelf, TCollection> where TCollection : SettingsBuildTargetCollection<TSelf, TCollection>

Type Parameters​

NameTypeDescription
TSelfThe settings class itself.
TCollectionThe collection type storeing this setting.

Inheritance​

Properties​

instance​

Accessor to singleton instance of the selected build target group setting.

public static TSelf instance { get; }

Property Value​

TSelf

Methods​

GetSettingsForBuildTargetGroup(BuildTargetGroup)​

Returns the Settings object for the given BuildTargetGroup

public static TSelf GetSettingsForBuildTargetGroup(BuildTargetGroup buildTargetGroup)

Parameters​

NameTypeDescription
buildTargetGroupBuildTargetGroupBuildTargetGroup to request settings for

Returns​

TSelf — OpenXRSettings object for the given build target group