Click or drag to resize

ResourceManagerLoadMergedT Method (ResourceFolder, String)

Load a resource merging the game version with all the mod versions and cache it. Useful to allow modding of configuration files like Json.

If folder is Resources the base asset is loaded with If it's not, it's parsed manually with the list of parsers registered.

Namespace:  Kit
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public static T LoadMerged<T>(
	ResourceFolder folder,
	string file
)
Request Example View Source

Parameters

folder
Type: KitResourceFolder
The folder to load the resource from.
file
Type: SystemString
The path and file-name relative to the folder.

Type Parameters

T
Type of the resource expected.

Return Value

Type: T
Reference to the resource, or if it was not found.
See Also