bool NoOrigin { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The NoOrigin property of the MapInstance class is a boolean value that determines whether the map should be loaded without an origin. This property is marked with the HideAttribute, indicating that it is not intended to be exposed in the user interface or editor. The NoOrigin property is useful in scenarios where the map's origin point should not be considered during loading, potentially affecting how the map is positioned or rendered in the scene.

Usage

To use the NoOrigin property, you can access it directly from an instance of the MapInstance class. This property is read-write, allowing you to set or get its value as needed. However, since it is hidden, it is typically used internally or in advanced scenarios where direct manipulation of map origin behavior is required.

Example

// Example of setting the NoOrigin property
MapInstance mapInstance = new MapInstance();
mapInstance.NoOrigin = true; // Load the map without considering the origin

// Check if NoOrigin is set
bool isNoOrigin = mapInstance.NoOrigin;
if (isNoOrigin)
{
    // Perform actions knowing the map is loaded without an origin
}