Skip to content

Commit

Permalink
Update RectTransformExtensions.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
kochounoyume authored Jan 23, 2025
1 parent 7ae5cb7 commit bab5ef8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public static void SetFullStretch(this RectTransform rectTransform, in float lef
///
/// private void DisplayWorldCorners()
/// {
/// Span<Vector3> v = stackalloc Vector3[4];
/// var v = (stackalloc Vector3[4]);
/// _rectTransform.GetWorldCorners(v);
///
/// Debug.Log("World Corners");
Expand Down Expand Up @@ -272,7 +272,7 @@ public static ReadOnlySpan<Vector3> GetWorldCorners(this RectTransform rectTrans
///
/// private void DisplayLocalCorners()
/// {
/// Span<Vector3> v = stackalloc Vector3[4];
/// var v = (stackalloc Vector3[4]);
///
/// _rectTransform.rotation = Quaternion.AngleAxis(45, Vector3.forward);
/// _rectTransform.GetLocalCorners(v);
Expand Down Expand Up @@ -322,4 +322,4 @@ internal static ReadOnlySpan<Vector3> GetCalculateLocalCorners(this RectTransfor
return fourCornersSpan;
}
}
}
}

0 comments on commit bab5ef8

Please sign in to comment.