Skip to main content

OverridePlatformProvider

A internal class in Alta.PlatformInformation.Runtime, Alta.PlatformInformation. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Internal: holds a platform override for testing. The override only counts in the Unity editor.

Constructors​

MemberWhat it is
OverridePlatformProvider()Creates an OverridePlatformProvider with default values.

Properties​

MemberWhat it is
bool IsRuntimeOverride { get; }True only in the editor when an override is set.
PlatformFlags OverrideRuntime { get; private set; }The overriding platform flags, or 0 for none.

Methods​

MemberWhat it is
void ClearClientRuntimeOverride()Clears the override.
void SetClientRuntimeOverride(PlatformFlags platform)Sets the override platform.

Used in​

Members of other types that take, return or hold a OverridePlatformProvider: