Skip to main content

PlatformComponents.PlatformObjectSetup

A private class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

A list of components kept only on certain platforms. Baking destroys them on any other platform.

Constructors​

MemberWhat it is
PlatformObjectSetup()Creates a PlatformComponents.PlatformObjectSetup with default values.

Fields​

2 private and internal fields
MemberWhat it is
private PlatformFlags targetPlatformsThe platforms that keep the components. Defaults to Windows.
private Component[] targetsThe components to keep or destroy.

Methods​

MemberWhat it is
void Bake()Destroys every target component unless the current runtime platform is one of targetPlatforms.

Used in​

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