public static void BakeGeometryCollider()
 {
     if (Selection.activeGameObject != null)
     {
         GeometryCollider.Bake(Selection.activeGameObject, true);
     }
 }
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        GeometryCollider myScript = (GeometryCollider)target;

        if (GUILayout.Button("Bake collider"))
        {
            myScript.Bake();
        }
    }