Show / Hide Table of Contents

    Class ObjImporter

    Service for importing and parsing .obj files

    Inheritance
    Object
    ObjImporter
    Namespace: i5.Toolkit.Core.ModelImporters
    Assembly: cs.temp.dll.dll
    Syntax
    public class ObjImporter : IService

    Properties

    ContentLoader

    Module that should be used for fetching the .obj file's content

    Declaration
    public IContentLoader<string> ContentLoader { get; set; }
    Property Value
    Type Description
    IContentLoader<String>

    ExtendedLogging

    If set to true, additional information, e.g. comments in the .obj file, are logged

    Declaration
    public bool ExtendedLogging { get; set; }
    Property Value
    Type Description
    Boolean

    MtlLibrary

    instance of the MtlLibrary

    Declaration
    public MtlLibrary MtlLibrary { get; }
    Property Value
    Type Description
    MtlLibrary

    Methods

    Cleanup()

    Called by the service manager to clean up the service if it is stopped

    Declaration
    public void Cleanup()

    ImportAsync(String)

    Asynchronously imports the given .obj file from the specified url

    Declaration
    public Task<GameObject> ImportAsync(string url)
    Parameters
    Type Name Description
    String url

    The url to the .obj file

    Returns
    Type Description
    Task<GameObject>

    The GameObject that was created for the imported .obj

    Initialize(IServiceManager)

    Called by the service manager to initialize the service if it is started

    Declaration
    public void Initialize(IServiceManager owner)
    Parameters
    Type Name Description
    IServiceManager owner

    The service manager that owns this service

    Back to top i5 Toolkit Documentation