PlatformField<T>

csharp
public class PlatformField<T>

Namespace NodeWorld.SDK.PlatformSwitch.

A value for desktop PC (Windows, Linux) and a value for Android (Quest).

Fields

PC

csharp
public T PC

The value on Windows and Linux.

Android

csharp
public T Android

The value on Android (Quest).

Methods

Setup

csharp
public void Setup(T currentValue)

Sets both platforms to currentValue.

Get

csharp
public T Get(NWPlatform platform)

The value for platform.

Set

csharp
public void Set(NWPlatform platform, T value)

Sets the value of platform.