Class ExternalTextureLoader
A concrete implementation of ExternalFileLoaderBase<T> for loading texture files into
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: MGeLabs.Utils.Data
Assembly: cs.temp.dll.dll
Syntax
public class ExternalTextureLoader : ExternalFileLoaderBase<Texture2D>
Properties
SupportedExtensions
Supported texture file extensions.
Declaration
protected override List<string> SupportedExtensions { get; }
Property Value
| Type | Description |
|---|---|
| List<System.String> |
Overrides
MGeLabs.Utils.Data.ExternalFileLoaderBase<Texture2D>.SupportedExtensions
Methods
LoadSingleFileRoutine(FileHandle, Action<Texture2D>, Action<FileHandle, Int32>)
Loads a single texture file asynchronously.
Declaration
protected override IEnumerator LoadSingleFileRoutine(FileHandle handle, Action<Texture2D> onLoadingFinished, Action<FileHandle, int> onError = null)
Parameters
| Type | Name | Description |
|---|---|---|
| FileHandle | handle | The file handle representing the texture file. |
| Action<Texture2D> | onLoadingFinished | Callback invoked with the loaded Texture2D upon success. |
| Action<FileHandle, System.Int32> | onError | Callback invoked if the texture fails to load. |
Returns
| Type | Description |
|---|---|
| IEnumerator | An enumerator for the coroutine. |
Overrides
MGeLabs.Utils.Data.ExternalFileLoaderBase<Texture2D>.LoadSingleFileRoutine(MGeLabs.Utils.Data.FileHandle, Action<Texture2D>, Action<MGeLabs.Utils.Data.FileHandle, System.Int32>)