public void SaveMVRTransformFromEdit(int index = -1)
    {
        if (index == -1)
        {
            index = Convert.ToInt32(mvrIndexEditor.text);
        }
        for (int i = 0; i < levelLoader.CurrentLevelGameObject.transform.childCount; i++)
        {
            if (index != i)
            {
                continue;
            }

            GameObject mvrEntry = levelLoader.CurrentLevelGameObject.transform.GetChild(i).gameObject;
            if (mvrEntry.name.Substring(5).Split('/')[0] != i.ToString())
            {
                Debug.LogWarning("Something wrong!");
            }

            alien_mvr_entry thisEntry = levelLoader.CurrentLevel.ModelsMVR.GetEntry(i);
            thisEntry.Transform = mvrEntry.transform.localToWorldMatrix;
            levelLoader.CurrentLevel.ModelsMVR.SetEntry(i, thisEntry);

            break;
        }
        levelLoader.CurrentLevel.ModelsMVR.Save();
    }
    public void LoadMVRToEdit(int index = -1)
    {
        if (index == -1)
        {
            index = Convert.ToInt32(mvrIndexEditor.text);
        }
        alien_mvr_entry entry = levelLoader.CurrentLevel.ModelsMVR.Entries[index];

        mvrContentEditor.text = JsonUtility.ToJson(entry, true);
        loadedEditMVR         = index;
        mvrIndexEditor.text   = index.ToString();
    }
 public void BulkEditMVRTypes()
 {
     for (int i = 0; i < levelLoader.CurrentLevel.ModelsMVR.Entries.Count; i++)
     {
         alien_mvr_entry thisEntry = levelLoader.CurrentLevel.ModelsMVR.GetEntry(i);
         if (thisEntry.IsThisTypeID == (ushort)Convert.ToInt32(mvrTypeToSetFromBulk.text))
         {
             continue;
         }
         thisEntry.IsThisTypeID = (ushort)Convert.ToInt32(mvrTypeToSetBulk.text);
         levelLoader.CurrentLevel.ModelsMVR.SetEntry(i, thisEntry);
     }
     levelLoader.CurrentLevel.ModelsMVR.Save();
 }
    public void LoadMVR(int index = -1)
    {
        if (index == -1)
        {
            index = Convert.ToInt32(mvrIndex.text);
        }
        alien_mvr_entry entry = levelLoader.CurrentLevel.ModelsMVR.Entries[index];

        mvrInfoDump.text  = JsonUtility.ToJson(entry, true);
        mvrInfoDump.text += "\n\nNodeID: " + BitConverter.ToString(entry.NodeID) + "\nResourcesBINID: " + BitConverter.ToString(entry.ResourcesBINID) + "\nCollisionMapThingID: " + BitConverter.ToString(entry.CollisionMapThingID) + "\nUnknownID: " + BitConverter.ToString(entry.UnknownID);
        loadedMVR         = index;
        mvrIndex.text     = index.ToString();

        Debug.Log("NodeID: " + BitConverter.ToString(entry.NodeID));
    }