diff --git a/thermion_dart/native/include/scene/GltfSceneAsset.hpp b/thermion_dart/native/include/scene/GltfSceneAsset.hpp index f4f11afb..e6dccdae 100644 --- a/thermion_dart/native/include/scene/GltfSceneAsset.hpp +++ b/thermion_dart/native/include/scene/GltfSceneAsset.hpp @@ -40,6 +40,12 @@ namespace thermion SceneAsset *createInstance(MaterialInstance **materialInstances = nullptr, size_t materialInstanceCount = 0) override; + /// @brief + /// @param asset the instance to be destroyed + /// + /// Note that instances are not actually destroyed until the parent asset is destroyed. + /// When this method is called, @param asset will be marked as inactive + /// and recycled whenever createInstance is called again. void destroyInstance(SceneAsset *asset) override; SceneAssetType getType() override