QT_Map

Represents any map of the world, and is the base for the minimap.

protected RectTransform rectTransform The rect transform belonging to this map.
protected RectTransform markersTransform The transform used to store all UI markers (excluding the reference marker).
public QT_MapObject ReferenceObject The object used as a reference (such as the player).
public List<QT_MapObject> Objects The list of objects to make markers for.
public QT_MapMarker MarkerPrefab The marker prefab, used in making markers.
protected QT_MapMarker ReferenceMarker The reference marker. You should not need to change this.
public List<QT_MapMarker> Markers The list of markers. You should change this using AddMarker.
public QT_MapType Type The type of map, either 3D or 2D.
public Vector2 WorldSize The size of the world that is shown on the map.
public float MarkerSize The size in pixels of the marker.
public float MinZoom The minimum zoom allowed.
public float MaxZoom The maximum zoom allowed.
public float Zoom How zoomed in/out the map is. The higher this value, the more zoomed in.

Creates a new marker on the map, based on the given object.

QT_MapObject obj The GameObject with a QT_MapObject on it.
bool reference Whether or not this is the reference object.
// Add a marker, assuming that the marker is not the player
reference.AddMarker(objReference, false);

Sets the zoom of the map.

float zoom The new zoom level.
reference.SetZoom(1);

Changes the zoom of the map by a certain amount.

float amount The amount to change by.
Zoom = Mathf.Clamp(Zoom + amount, MinZoom, MaxZoom);

QT_Minimap

Represents a small version of the map, usually used in the corner of the screen. Also, it derives from QT_Map, meaning it has all of QT_Map's fields and methods.

public QT_MapColliderType MapCollider The type of collider used to keep markers on the border.
public bool RotateMap Whether or not the minimap should rotate based on the player's Y (3D) or Z (2D) angle.

QT_CompassBar

Used as a compass bar, showing travel direction in 3D space and any important markers.

private RectTransform rectTransform The rect transform belonging to this map.
private RectTransform barBackground The transform of the compass bar image.
private RectTransform markersTransform The transform used to store all UI markers (excluding the reference marker).
private RawImage image The image of the compass bar.
public QT_MapObject ReferenceObject The object used as a reference (such as the player).
public List<QT_MapObject> Objects The list of objects to make markers for.
public QT_MapMarker MarkerPrefab The marker prefab, used in making markers.
public List<QT_MapMarker> Markers The list of markers. You should change this using AddMarker.
public Vector2 CompassSize The full size of the compass graphic.
public Vector2 ShownCompassSize The shown size of the compass, used to show different degree amounts, such as 1/2 the normal width for 180 degrees. Keep the same as CompassSize for no masking.
public float MaxRenderDistance The max distance from the reference point where markers are visible.
public float MarkerSize The marker size in pixels.
public float MinScale The minimum scale amount for markers close to the reference point.
public float MaxScale The maximum scale amount for markers close to the reference point.

Creates a new marker on the compass bar, based on the given object.

QT_MapObject obj) The GameObject with a QT_MapObject on it.
reference.AddMarker(objectReference);

QT_MapObject

Represents a physical object in the world that corresponds to a map marker.

public QT_MapMarkerData Data The data used by the map object.

QT_MapMarker

The UI map marker representing a map object.

private RectTransform rectTransform The transform of this marker.
private Image image The image of this marker.
public QT_MapMarkerData Data The data used with this marker.
public QT_MapObject Object The object used with this marker.

QT_MapMarkerData

Used to create marker templates.

public string Name The name of the marker. Not used by QuantumTravel, but is their for potential user convenience.
public Sprite Icon The icon of the marker.
public bool ShowOnCompass Whether or not this marker should be shown on a compass.
public bool HugBorder Whether or not this marker can stay on the border of a minimap when out of its range.
public bool ShowRotation Whether or not the rotation (Y in 3D, Z in 2D) should be shown on a map or minimap.