The IsFixedUpdate
property of the Scene
class indicates whether the current update cycle is a fixed update. Fixed updates are typically used for physics calculations and are called at a consistent rate, independent of the frame rate.
The IsFixedUpdate
property of the Scene
class indicates whether the current update cycle is a fixed update. Fixed updates are typically used for physics calculations and are called at a consistent rate, independent of the frame rate.
Use the IsFixedUpdate
property to determine if the current update cycle is a fixed update. This can be useful for executing logic that should only occur during fixed updates, such as physics-related calculations.
// Example of using IsFixedUpdate property public void Update() { if (Scene.IsFixedUpdate) { // Perform physics calculations or other fixed update logic } else { // Perform regular update logic } }