public virtual void DrawMarker2DPropsGUI()
 {
     EditorGUI.BeginChangeCheck();
     control.marker2DMode = (OnlineMapsMarker2DMode)EditorGUILayout.EnumPopup("Marker 2D Mode: ", control.marker2DMode);
     if (control.marker2DMode == OnlineMapsMarker2DMode.billboard)
     {
         control.marker2DSize = EditorGUILayout.FloatField("Marker 2D size: ", control.marker2DSize);
         if (control.marker2DSize < 1)
         {
             control.marker2DSize = 1;
         }
     }
     if (EditorGUI.EndChangeCheck() && EditorApplication.isPlaying)
     {
         control.Clear2DMarkerInstances();
         OnlineMaps.instance.Redraw();
     }
 }
    public virtual void DrawMarker2DPropsGUI()
    {
        EditorGUI.BeginChangeCheck();

        int oldMode = pMarker2DMode.enumValueIndex;

        EditorGUILayout.PropertyField(pMarker2DMode);
        if (pMarker2DMode.enumValueIndex == (int)OnlineMapsMarker2DMode.billboard)
        {
            EditorGUILayout.PropertyField(pMarker2DSize);
            if (pMarker2DSize.floatValue < 1)
            {
                pMarker2DSize.floatValue = 1;
            }
        }
        if (EditorGUI.EndChangeCheck() && EditorApplication.isPlaying)
        {
            control.Clear2DMarkerInstances((OnlineMapsMarker2DMode)oldMode);
            OnlineMaps.instance.Redraw();
        }
    }