Loads the asset using an overloaded resource locator. 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, LoaderParameters parameters, IResourceLocator locatorOverride )
- T
- Type of resource
- assetName (String)
- Asset name
- parameters (LoaderParameters)
- Loader parameters
- locatorOverride (IResourceLocator)
- Resource locator to use
Loaded asset, if it exists, otherwise null
| Exception | Condition |
|---|---|
| ObjectDisposedException | Thrown if the manager has been disposed |
| ArgumentNullException | Thrown if the asset name or locator 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)