NWPlatformSwitch
La référence est en anglais : elle est générée à partir des commentaires du code, écrits en anglais.
public class NWPlatformSwitch : MonoBehaviourNamespace 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
public List<OverrideEntry> EntriesEvery override of the scene.
Properties
CachedPlatform
public NWPlatform CachedPlatform { get; }The platform applied last.
Methods
GetSceneInstance
public static NWPlatformSwitch GetSceneInstance()Finds the single NWPlatformSwitch in the active scene. Returns null if none exists.
SetupEntry
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
public void ApplyPlatform(NWPlatform platform)Applies every override's values of platform.
OnPlatformChanged
public void OnPlatformChanged(NWPlatform newPlatform)Applies the overrides of newPlatform when it differs from the last one applied.
