NodeWorld

NWPlatformSwitch

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

csharp
public class NWPlatformSwitch : MonoBehaviour

Namespace NodeWorld.SDK.PlatformSwitch.

NodeWorld Platform Switch — one per scene. Holds every per-platform override for the entire scene. When the Unity build target changes (desktop / Android), overrides are applied automatically. Add via: Add Component > NodeWorld > Platform Switch, or the NodeWorld > Platform Switch editor window (which creates it for you).

Fields

Entries

csharp
public List<OverrideEntry> Entries

Every override of the scene.

Properties

CachedPlatform

csharp
public NWPlatform CachedPlatform { get; }

The platform applied last.

Methods

GetSceneInstance

csharp
public static NWPlatformSwitch GetSceneInstance()

Finds the single NWPlatformSwitch in the active scene. Returns null if none exists.

SetupEntry

csharp
public bool SetupEntry(int index)

Creates the override that fits the target of entry index and reads its current values; false when no override fits.

ApplyPlatform

csharp
public void ApplyPlatform(NWPlatform platform)

Applies every override's values of platform.

OnPlatformChanged

csharp
public void OnPlatformChanged(NWPlatform newPlatform)

Applies the overrides of newPlatform when it differs from the last one applied.

Nested types