Topic: How to place a Mark? Getting started using the API.
Hello,
I want to "Add Marker" to "OnlineMapsMarkerManager"
I need help starting to use the C# API.
Since it has its own namespace, it looks not conventional or does not understand how to make it work. I look all the video tutorials, the scripts examples but I do not get it.
FEEDBACK: In the Youtube video section, looks like missing a simple C# video on making a script component that feeds/uses the API code.
If you can provide one full working script "PlaceMark" example, let me started using the API.
I also did not understand how to feed "UIBubblePopup" CData[] data.
using UnityEngine;
public class PlaceMark : MonoBehaviour
{
public Texture2D texture;
void Start()
{
OnlineMapsMarkerManager.CreateItem(new Vector2(30.0f, -50.0f), texture, "Hellow Mark?");
}
}
This script component was in the same "Map" game object. But is not connected to other components.
I also try
using UnityEngine;
public class PlaceMark : MonoBehaviour
{
public Texture2D texture;
void Start()
{
OnlineMapsMarkerManager map = GetComponent<OnlineMapsMarkerManager>();
map.CreateItem(new Vector2(30.0f, -50.0f), texture, "Hellow Mark?");
}
}
Do I need to put using... or after PlaceMark : MonoBehaviour, ... as a child?