# TimeOfDayMode

Kind: Enum · Namespace: Sansar.Simulation · Assembly: Sansar.Simulation.dll · Script API 47.10.0

<div class="api-meta">
<span class="api-kind api-kind-enum" data-pagefind-filter="kind:Enum">Enum</span>
<span data-pagefind-filter="namespace:Sansar.Simulation">Namespace <a href="/scripting/api/sansar.simulation"><code>Sansar.Simulation</code></a></span>
<span class="api-badge api-new">New in 47.10.0</span>
</div>

<span id="T:Sansar.Simulation.TimeOfDayMode"></span>

How a scene&#39;s time of day runs.

```csharp
public enum TimeOfDayMode
```

## Remarks

See [`ScenePrivate.GetTimeOfDayMode`](/scripting/api/sansar.simulation/sceneprivate#gettimeofdaymode) and [`ScenePrivate.SetTimeOfDayMode`](/scripting/api/sansar.simulation/sceneprivate#settimeofdaymode-timeofdaymode).

## Values

| Value | Description |
|---|---|
| <span id="cycle"></span><span id="F:Sansar.Simulation.TimeOfDayMode.Cycle"></span>`Cycle` <span class="api-badge api-new">New in 47.10.0</span> | The clock runs. A full day takes the day length chosen in the scene settings. |
| <span id="fixed"></span><span id="F:Sansar.Simulation.TimeOfDayMode.Fixed"></span>`Fixed` <span class="api-badge api-new">New in 47.10.0</span> | The sun is held at the set time of day. |
| <span id="off"></span><span id="F:Sansar.Simulation.TimeOfDayMode.Off"></span>`Off` <span class="api-badge api-new">New in 47.10.0</span> | The scene as authored. The sun stays where its light points and the time of day has no effect. |

## Used in examples

- `TimeOfDayExample.cs`

<p class="api-generated" data-pagefind-ignore>Generated from the Sansar 47.10.0 client ScriptApi snapshot.</p>