Search Results for

    Show / Hide Table of Contents

    Class ExternalTextureLoader

    A concrete implementation of ExternalFileLoaderBase<T> for loading texture files into objects.

    Inheritance
    System.Object
    ExternalFileLoaderBase<Texture2D>
    ExternalTextureLoader
    Inherited Members
    ExternalFileLoaderBase<Texture2D>.LoadFromDirectory(String, EStorageLocation, Action<IReadOnlyList<Texture2D>>, Action<IReadOnlyList<Texture2D>>, Action<FileHandle, Int32>, Int32)
    ExternalFileLoaderBase<Texture2D>.FindFilesInDirectory(String, EStorageLocation)
    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>)
    In This Article
    Back to top MGeUtils Documentation