Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity recttransform set anchor

Vector2 anchor = new Vector2([x of anchor (0=left, 1=right)],[y of anchor (0=bottom, 1=top]);
panelRectTransform.anchorMin = anchor;
panelRectTransform.anchorMax = anchor;
 
PREVIOUS NEXT
Tagged: #unity #recttransform #set #anchor
ADD COMMENT
Topic
Name
3+3 =