WeatherMakerScriptLoadResourceT Method |
Retrieve a Weather Maker resources. The resource should be added to the References property ideally, or as a fallback can be in a Resources folder.
Namespace:
DigitalRuby.WeatherMaker
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public T LoadResource<T>(
string name
)
where T : Object
Public Function LoadResource(Of T As Object) (
name As String
) As T
public:
generic<typename T>
where T : Object
T LoadResource(
String^ name
)
member LoadResource :
name : string -> 'T when 'T : Object
Parameters
- name
- Type: SystemString
Name of resource to get
Type Parameters
- T
- Type of resource
Return Value
Type:
TResource or null if not found
See Also