EnvironmentFlatteningApi (Class)

Namespace: Wrld.Space.EnvironmentFlattening

Provides endpoints to flatten or un-flatten buildings and terrain, and query the current status.

Methods

void SetIsFlattened (bool)

Flatten or un-flatten the buildings and terrain.

Argument Type Description
isFlattened bool A boolean which controls whether or not the buildings and terrain should be flattened.

bool IsFlattened ()

Query if the buildings and terrain are currently flattened.

float GetCurrentScale ()

Gets the current flattening scale of the buildings and terrain. This is useful for positioning and scaling objects.