Previously we had methods to remove a prefab from the cache, but users didn't have a place to call it, so it was useless. This PR allows users to remove prefabs at real-time (regardless of being in patch time, or in a world).
Added a new extension method for CustomPrefab to remove a custom prefab from the cache.
Fixed a bug where if a custom prefab's game object returns null, the game freezes
Changes made in this pull request
CustomPrefab
to remove a custom prefab from the cache.Fixed a bug where if a custom prefab's game object returns null, the game freezes
NOT TESTED