Skip to main content

PlatformHeightOffset

A struct in Root.Township, the global namespace.

A player height offset for one set of platforms, listed in PlatformHeightOffsetSettings.

Constructors​

MemberWhat it is
PlatformHeightOffset(PlatformFlags platform, float offset)Creates a PlatformHeightOffset from platform and offset.

Fields​

2 private and internal fields
MemberWhat it is
private float offsetBacking field for Offset.
private PlatformFlags platformPlatforms this offset applies to.

Properties​

MemberWhat it is
bool IsActive { get; }Whether the running platform matches.
float Offset { get; }Height offset to apply on that platform.

Used in​

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