NodeWorld

Toggle

La référence est en anglais : elle est générée à partir des commentaires du code, écrits en anglais.

csharp
public sealed class Toggle : Selectable

Namespace NodeWorld.Flux.

A Toggle of a canvas of the world.

Properties

isOn

csharp
public bool isOn { get; set; }

The toggle is on; setting it runs onValueChanged.

onValueChanged

csharp
public UiEvent<bool> onValueChanged { get; }

The toggle changed, with its new state.

Methods

SetIsOnWithoutNotify

csharp
public void SetIsOnWithoutNotify(bool value)

Sets the toggle without running onValueChanged: to show a value that came from the network.