Skip to content

Conversation

@starryforest-ymxk
Copy link
Contributor

In some cases we should use this pattern, it differs from the traditional "Global singleton pattern", the purpose of "Scene Singleton Pattern" is to ensure that there is only one instance of the class in a given scene, but it does not require that instance to persist across scenes. This pattern is useful when you need to manage certain assets or features in a single scene, but you don't want those assets or features to remain present when the scene is switched.

@hasanbayatme hasanbayatme merged commit 040576c into UnityCommunity:master Nov 27, 2023
@hasanbayatme
Copy link
Member

Yeah absolutely, that's a nice addition, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants