| GameSettingsLoadSettingsT Method (String, String) |
Loads the setting resource from the specified resource folder and filename.
Within the editor a new resource file is created if the file wasn't found.
Namespace: Slash.Unity.Common.ConfigurationAssembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntax protected static T LoadSettings<T>(
string resourceFolder,
string filePath
)
where T : GameSettings
Protected Shared Function LoadSettings(Of T As GameSettings) (
resourceFolder As String,
filePath As String
) As T
protected:
generic<typename T>
where T : GameSettings
static T LoadSettings(
String^ resourceFolder,
String^ filePath
)
static member LoadSettings :
resourceFolder : string *
filePath : string -> 'T when 'T : GameSettings
Parameters
- resourceFolder
- Type: SystemString
Path of the Resources folder. - filePath
- Type: SystemString
Path to the resource file within the Resources folder.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:Slash.Unity.Common.Configuration.GameSettings.LoadSettings``1(System.String,System.String)"]
Return Value
Type:
TLoaded settings resource file.
See Also