Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Very useful RectTransform extension methods

$
0
0
Recently I came across this question that had some really handy extension methods I thought I'd share. I've added AnchorToCorners as well. Feel free to share what you found useful for you

Code (csharp):
  1.  
  2.   public static class RectTransformExtensions
  3.    {
  4.      public static void AnchorToCorners(this RectTransform transform)
  5.      {
  6.        if (transform == null)
  7.          throw new...
Very useful RectTransform extension methods

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>