Search Results for

    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
    bool

    MtlLibrary

    instance of the MtlLibrary

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

    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 either from the local file system or the web.

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

    The path to the .obj file that is either stored online or on the local file system

    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

    In This Article
    Back to top i5 Toolkit Documentation