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

This component manages 3D markers. More...

Inheritance diagram for OnlineMapsMarker3DManager:
OnlineMapsMarkerManagerBase< OnlineMapsMarker3DManager, OnlineMapsMarker3D >

Public Member Functions

OnlineMapsMarker3D Create (Vector2 location, GameObject prefab, string label="")
 Create a new 3D marker.
 
OnlineMapsMarker3D Create (double longitude, double latitude, GameObject prefab, string label="")
 Create a new 3D marker.
 
OnlineMapsMarker3D CreateFromExistGameObject (double longitude, double latitude, GameObject markerGameObject)
 Creates a new 3D marker from an existing GameObject in the scene.
 
void LoadSettings (OnlineMapsJSONItem json)
 Load items and component settings from JSON.
 

Static Public Member Functions

static OnlineMapsMarker3D CreateItem (Vector2 location, GameObject prefab)
 Create a new 3D marker.
 
static OnlineMapsMarker3D CreateItem (double lng, double lat, GameObject prefab, string label="")
 Create a new 3D marker.
 
static OnlineMapsMarker3D CreateItemFromExistGameObject (double longitude, double latitude, GameObject markerGameObject)
 Creates a new 3D marker from an existing GameObject in the scene.
 

Public Attributes

bool allowAddMarker3DByN = true
 Specifies whether to create a 3D marker by pressing N under the cursor.
 
GameObject defaultPrefab
 Default 3D marker.
 
- Public Attributes inherited from OnlineMapsMarkerManagerBase< OnlineMapsMarker3DManager, OnlineMapsMarker3D >
Action< U > OnCreateItem
 Called when a marker is created.
 
float defaultScale
 Scaling of 3D markers by default.
 

Detailed Description

This component manages 3D markers.

Member Function Documentation

◆ Create() [1/2]

OnlineMapsMarker3D OnlineMapsMarker3DManager.Create ( double longitude,
double latitude,
GameObject prefab,
string label = "" )

Create a new 3D marker.

Parameters
longitudeLongitude
latitudeLatitude
prefabPrefab
labelMarker label
Returns
Instance of the marker

◆ Create() [2/2]

OnlineMapsMarker3D OnlineMapsMarker3DManager.Create ( Vector2 location,
GameObject prefab,
string label = "" )

Create a new 3D marker.

Parameters
locationLocation of the marker (X - longitude, Y - latitude)
prefabPrefab

///

Parameters
labelMarker label
Returns
Instance of the marker

◆ CreateFromExistGameObject()

OnlineMapsMarker3D OnlineMapsMarker3DManager.CreateFromExistGameObject ( double longitude,
double latitude,
GameObject markerGameObject )

Creates a new 3D marker from an existing GameObject in the scene.

Parameters
longitudeLongitude
latitudeLatitude
markerGameObjectGameObject in the scene
Returns
Instance of the marker

◆ CreateItem() [1/2]

static OnlineMapsMarker3D OnlineMapsMarker3DManager.CreateItem ( double lng,
double lat,
GameObject prefab,
string label = "" )
static

Create a new 3D marker.

Parameters
lngLongitude
latLatitude
prefabPrefab
Returns
Instance of the marker

◆ CreateItem() [2/2]

static OnlineMapsMarker3D OnlineMapsMarker3DManager.CreateItem ( Vector2 location,
GameObject prefab )
static

Create a new 3D marker.

Parameters
locationLocation of the marker (X - longitude, Y - latitude)
prefabPrefab
Returns
Instance of the marker

◆ CreateItemFromExistGameObject()

static OnlineMapsMarker3D OnlineMapsMarker3DManager.CreateItemFromExistGameObject ( double longitude,
double latitude,
GameObject markerGameObject )
static

Creates a new 3D marker from an existing GameObject in the scene.

Parameters
longitudeLongitude
latitudeLatitude
markerGameObjectGameObject in the scene
Returns
Instance of the marker

◆ LoadSettings()

void OnlineMapsMarker3DManager.LoadSettings ( OnlineMapsJSONItem json)

Load items and component settings from JSON.

Parameters
jsonJSON item