// SPDX-FileCopyrightText: 2023 Unity Technologies and the glTFast authors // SPDX-License-Identifier: Apache-2.0 using System; namespace GLTFast.Addons { /// /// Base class for customizing load- and instantiation behavior. /// Injects itself into and . /// public abstract class ImportAddonInstance : IDisposable { /// /// Obtains whether a certain glTF extension /// is supported by this . /// /// Name of the glTF extension /// /// True if this ImportInstance offers support for the given glTF extension. False otherwise. public abstract bool SupportsGltfExtension(string extensionName); /// /// Injects this import instance into a /// /// to be injected into. public abstract void Inject(GltfImportBase gltfImport); /// /// Injects this import instance into an instantiator. /// /// Instantiator to be injected into. public abstract void Inject(IInstantiator instantiator); /// /// Releases previously allocated resources. /// public abstract void Dispose(); } }