setting the anchor presets unity code example
Example 1: setting the anchor presets unity
newrect.anchorMin = new Vector2(0.5f, 0);
newrect.anchorMax = new Vector2(0.5f, 0);
newrect.pivot = new Vector2(0, 0);
Example 2: setting the anchor presets unity
newrect.anchorMin = new Vector2(0.5f, 0);
newrect.anchorMax = new Vector2(0.5f, 0);
newrect.pivot = new Vector2(0, 0);
Example 3: setting the anchor presets unity
newrect.anchorMin = new Vector2(0.5f, 0);
newrect.anchorMax = new Vector2(0.5f, 0);
newrect.pivot = new Vector2(0, 0);
Example 4: setting the anchor presets unity
newrect.anchorMin = new Vector2(0.5f, 0);
newrect.anchorMax = new Vector2(0.5f, 0);
newrect.pivot = new Vector2(0, 0);
Example 5: setting the anchor presets unity
newrect.anchorMin = new Vector2(0.5f, 0);
newrect.anchorMax = new Vector2(0.5f, 0);
newrect.pivot = new Vector2(0, 0);
Example 6: setting the anchor presets unity
newrect.anchorMin = new Vector2(0.5f, 0);
newrect.anchorMax = new Vector2(0.5f, 0);
newrect.pivot = new Vector2(0, 0);
Example 7: setting the anchor presets unity
newrect.anchorMin = new Vector2(0.5f, 0);
newrect.anchorMax = new Vector2(0.5f, 0);
newrect.pivot = new Vector2(0, 0);