The SimulationTime
property of the SceneParticles
class allows you to get or set the current simulation time for the particle system. This property is a float
value representing the time in seconds that the particle system has been simulating.
The SimulationTime
property of the SceneParticles
class allows you to get or set the current simulation time for the particle system. This property is a float
value representing the time in seconds that the particle system has been simulating.
Use the SimulationTime
property to control or query the simulation time of a particle system. This can be useful for synchronizing particle effects with other timed events in your scene or for manually advancing the simulation time for testing purposes.
// Example of setting the simulation time for a SceneParticles object SceneParticles particles = new SceneParticles(); // Set the simulation time to 5 seconds particles.SimulationTime = 5.0f; // Retrieve the current simulation time float currentTime = particles.SimulationTime; // Output the current simulation time // Note: Avoid using Console.WriteLine in Sandbox // Instead, use a logging system or in-game UI to display information // Log.Info($"Current Simulation Time: {currentTime}");