public void AddRotationBefore(Transform t)
    {
        UIRotationOption inst = Instantiate(prefab, transform);

        inst.transform.SetSiblingIndex(t.GetSiblingIndex() - 1);
        rotations.Add(inst);
        inst.gameObject.SetActive(true);
    }
 public void RemoveRotation(UIRotationOption option)
 {
     rotations.Remove(option);
     Destroy(option.gameObject);
 }