public static void DestroyGeneratedOutputData(HEU_GeneratedOutputData generatedOutputData, bool bDontDeletePersistantResources) { // Generated Material references HEU_GeneratedOutput.ClearGeneratedMaterialReferences(generatedOutputData); // Components HEU_GeneralUtility.DestroyGeneratedMeshMaterialsLODGroups(generatedOutputData._gameObject, bDontDeletePersistantResources); // Gameobject HEU_GeneralUtility.DestroyImmediate(generatedOutputData._gameObject); }