<aside> ๐๏ธ This component is responsible for resetting an object to its initial state. It includes parameters for defining the reset point, controlling the reset behavior, and invoking a reset event.
</aside>
<aside> โ ๏ธ Resetting objects can have some timing issues. If you are resetting an object with a rigidbody do not use instant reset.
</aside>
bool instantReset
When not using Rigidbody.Rigidbody bodyToReset
The Rigidbody component to reset.Transform resetPoint
The reset point for the object.bool generateResetPoint
If the reset point is not set, it will set where it starts as the reset point.public UnityEvent resetEvent
Event triggered upon resetting the object._ResetObject()
Resets the object based on the selected reset behavior.ActualReset()
Performs the actual reset of the object's position and rotation._SetResetPoint(Transform where)
Sets the reset point to the specified Transform._SetNewSpawn()
Sets a new spawn point for the object and optionally generates a reset point if it is not set.<aside> ๐๏ธ This provides functionality to reset all objects at once
</aside>
List<ResettableObject> myObjects
The list of objects to be reset.bool getFromChildren
On start populates the list myObjects with all resettable objects in itโs children.