Kiran Cyrus Ken
Kiran Cyrus Ken

Reputation: 389

What is the difference between anchored position and local position in Unity?

I am new to unity. I am trying to figure out what is the difference between anchored position and local position and where can the both be applied?

Upvotes: 7

Views: 12564

Answers (1)

Wajid
Wajid

Reputation: 127

Anchored Position

The Anchored Position is the position of the pivot of the RectTransform taking into consideration the anchor reference point. The anchor reference point is the position of the anchors. If the anchors are not together, Unity estimates the four anchor positions using the pivot placement as a reference.

Local Position

localPosition is the position of the GameObject with respect to its parent object. transform. position is the position of the GameObject with respect to the root. Within local space of a GameObject, the center (or pivot) is always (0, 0, 0).




Source: Unity Forum

Upvotes: -1

Related Questions