Online Maps v3
|
This component manages 3D markers. More...
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. | |
This component manages 3D markers.
OnlineMapsMarker3D OnlineMapsMarker3DManager.Create | ( | double | longitude, |
double | latitude, | ||
GameObject | prefab, | ||
string | label = "" ) |
Create a new 3D marker.
longitude | Longitude |
latitude | Latitude |
prefab | Prefab |
label | Marker label |
OnlineMapsMarker3D OnlineMapsMarker3DManager.Create | ( | Vector2 | location, |
GameObject | prefab, | ||
string | label = "" ) |
Create a new 3D marker.
location | Location of the marker (X - longitude, Y - latitude) |
prefab | Prefab |
///
label | Marker label |
OnlineMapsMarker3D OnlineMapsMarker3DManager.CreateFromExistGameObject | ( | double | longitude, |
double | latitude, | ||
GameObject | markerGameObject ) |
Creates a new 3D marker from an existing GameObject in the scene.
longitude | Longitude |
latitude | Latitude |
markerGameObject | GameObject in the scene |
|
static |
Create a new 3D marker.
lng | Longitude |
lat | Latitude |
prefab | Prefab |
|
static |
Create a new 3D marker.
location | Location of the marker (X - longitude, Y - latitude) |
prefab | Prefab |
|
static |
Creates a new 3D marker from an existing GameObject in the scene.
longitude | Longitude |
latitude | Latitude |
markerGameObject | GameObject in the scene |
void OnlineMapsMarker3DManager.LoadSettings | ( | OnlineMapsJSONItem | json | ) |
Load items and component settings from JSON.
json | JSON item |