Table of Contents

Class AmbientPlatform

Namespace
nadena.dev.ndmf.platform

Provides access to the currently selected NDMF build platform, even outside of the context of the build process.

public static class AmbientPlatform
Inheritance
AmbientPlatform
Inherited Members

Properties

CurrentPlatform

Returns the current platform; either the one in use in the current build context, or the default platform.

public static INDMFPlatformProvider CurrentPlatform { get; }

Property Value

INDMFPlatformProvider

DefaultPlatform

The default platform to use in legacy calls like AvatarProcessor.ProcessAvatar. This is not necessarily the platform in use in a build; use CurrentPlatform or BuildContext.PlatformProvider for that.

public static INDMFPlatformProvider DefaultPlatform { get; }

Property Value

INDMFPlatformProvider

Events

OnDefaultPlatformChanged

public static event Action? OnDefaultPlatformChanged

Event Type

Action