ResetOnSpawn
ResetOnSpawn is a property found in certain game development engines and frameworks, particularly those that utilize object pooling or instantiating game objects. Its primary function is to define whether a game object's state should be reset to its default or initial configuration every time it is spawned or reactivated. This is commonly used in conjunction with systems that reuse objects rather than destroying and recreating them to optimize performance.
When ResetOnSpawn is enabled for a game object, its relevant properties, such as position, rotation, scale, velocity,
Conversely, if ResetOnSpawn is disabled, the game object retains its last known state when it is reactivated.