Online Maps v3
Loading...
Searching...
No Matches
OnlineMapsRWTConnector Class Reference

Real World Terrain Connector. More...

Inheritance diagram for OnlineMapsRWTConnector:
IOnlineMapsSavableComponent

Public Types

enum  Mode
 Connection mode.
 
enum  PositionMode
 Which object should be displayed on the map.
 

Public Member Functions

OnlineMapsSavableItem[] GetSavableItems ()
 Returns an array of items to save.
 
Vector2 WorldPositionToCoordinates (Vector3 position)
 Converts position to geographic coordinates.
 

Public Attributes

Mode mode = Mode.markerOnPosition
 Connection mode.
 
PositionMode positionMode = PositionMode.transform
 Which object should be displayed on the map.
 
Texture2D markerTexture
 The texture of the marker to be displayed on the map.
 
string markerLabel
 The label of the marker to be displayed on the map.
 
Vector3 scenePosition
 Position, which must be shown on the map.
 
Vector2 coordinates
 Coordinates, which must be shown on the map.
 
Transform targetTransform
 Transform, which must be shown on the map.
 

Properties

Vector2 currentPosition [get]
 Coordinates of selecteted object.
 

Detailed Description

Real World Terrain Connector.

Member Function Documentation

◆ GetSavableItems()

OnlineMapsSavableItem[] OnlineMapsRWTConnector.GetSavableItems ( )

Returns an array of items to save.

Returns
Array of items to save

Implements IOnlineMapsSavableComponent.

◆ WorldPositionToCoordinates()

Vector2 OnlineMapsRWTConnector.WorldPositionToCoordinates ( Vector3 position)

Converts position to geographic coordinates.

Parameters
positionWorld position
Returns
Geographic coordinates