docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ImportAddonInstance

    Base class for customizing load- and instantiation behavior. Injects itself into GltfImport and IInstantiator.

    Inheritance
    object
    ImportAddonInstance
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: GLTFast.Addons
    Assembly: glTFast.dll
    Syntax
    public abstract class ImportAddonInstance : IDisposable

    Methods

    Dispose()

    Releases previously allocated resources.

    Declaration
    public abstract void Dispose()

    Inject(GltfImportBase)

    Injects this import instance into a GltfImport

    Declaration
    public abstract void Inject(GltfImportBase gltfImport)
    Parameters
    Type Name Description
    GltfImportBase gltfImport

    GltfImport to be injected into.

    Inject(IInstantiator)

    Injects this import instance into an instantiator.

    Declaration
    public abstract void Inject(IInstantiator instantiator)
    Parameters
    Type Name Description
    IInstantiator instantiator

    Instantiator to be injected into.

    SupportsGltfExtension(string)

    Obtains whether a certain glTF extension is supported by this ImportAddonInstance.

    Declaration
    public abstract bool SupportsGltfExtension(string extensionName)
    Parameters
    Type Name Description
    string extensionName

    Name of the glTF extension

    Returns
    Type Description
    bool

    True if this ImportInstance offers support for the given glTF extension. False otherwise.

    See Also
    https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#specifying-extensions

    Implements

    IDisposable
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)