Loads the asset. If UseDefaultContent is set to true, and if the asset cannot be found,
an attempt to load it from the default content manager will be made.
| C# |
public T Load<T>( string assetName )
- T
- Type of resource
- assetName (String)
- Asset name
Loaded asset, if it exists, otherwise null
| Exception | Condition |
|---|---|
| ObjectDisposedException | Thrown if the manager has been disposed |
| ArgumentNullException | Thrown if the asset name is null |
| InvalidCastException | Thrown if the asset to load does not match return type |
| ResourceNotFoundException | Thrown if resource could not be located |
| InvalidOperationException | Thrown if no suitable loader registered to the manager |
| TeslaException | Thrown if loader parameters are not valid. |
Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)