/// <summary>
    /// A method get the anchors size. This is usefull to manipulate anchors size with only a single Vector2, specially usefull for tweens and clean code.
    /// </summary>
    /// <param name="tr"></param>
    /// <param name="coordinateSystem">The coordinate system you want the anchors size to be returned.</param>
    public static Vector2 GetAnchorsSize(this RectTransform tr, AnchorsCoordinateSystem coordinateSystem = AnchorsCoordinateSystem.Default)
    {
        switch (coordinateSystem)
        {
        case AnchorsCoordinateSystem.Default:
            return(RteAnchorTools.GetAnchorsSize(tr));

        case AnchorsCoordinateSystem.AsChildOfCanvas:
            return(RteAnchorTools.GetSizeInCanvasAnchorCoordinatesFromAnchorsSize(tr));

        case AnchorsCoordinateSystem.ScreenSpacePixels:
            return(RteAnchorTools.GetScreenSpaceSizeFromAnchorsSize(tr));

        case AnchorsCoordinateSystem.AsRect:
            return(RteAnchorTools.GetRectSizeFromAnchorSize(tr, RteAnchorTools.GetAnchorsSize(tr)));

        case AnchorsCoordinateSystem.InsideCanvas:
            return(RteAnchorTools.GetSizeInCanvasAnchorCoordinatesFromAnchorsSize(tr));

        case AnchorsCoordinateSystem.OutsideCanvas:
            return(RteAnchorTools.GetSizeInCanvasAnchorCoordinatesFromAnchorsSize(tr));

        case AnchorsCoordinateSystem.OutsideContainer:
            return(RteAnchorTools.GetAnchorsSize(tr));
        }

        return(RteAnchorTools.GetAnchorsSize(tr));
    }