public class Sandbox.Time
Related Guides
Broader workflow and conceptual references connected to this API.
Some Input methods are specific to Controllers/Gamepads, and are useful to know for making sure your player experience caters to those who don't play on a Keyboard + Mouse.
The global namespace has a bunch of useful variables.
Input is accessed using theโฆ Input class!
To make a multiplayer game you need to take care of a few things. There's a special component that helps with those things, called NetworkHelper. This is a simple component that fits a lot of situations, but can be used as an example to code your own network component.
You can define movies and play them back using C#.
s&box provides several ways to play sounds in code. You can fire-and-forget a sound at a world position, control it via a SoundHandle, attach it to a GameObject, or use scene components entirely.
Constructors
Showing 1 constructors
public Time()
No results match this filter.
Methods
Showing 1 methods
public static System.IDisposable Scope(double now, double delta)
No results match this filter.
Properties
Showing 3 properties
public static float Sandbox.Time.Delta { get; set; }
The delta between the last frame and the current (for all intents and purposes).
public static float Sandbox.Time.Now { get; set; }
The time since the game startup.
public static double Sandbox.Time.NowDouble { get; set; }
The time since the game startup as a double.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Time |