Commit b2542abb authored by 17김현학's avatar 17김현학

Add Annotation of Screenfactor

parent 8864b943
......@@ -30,7 +30,9 @@ public class UIManager : MonoBehaviour
pathName = _pathUI.transform.GetComponentInChildren<Text>();
_pathUI.SetActive(false);
middlePoint = _pathUI.transform.position;
Screenfactor = Screen.width / 862.0f * 2.5f;
Screenfactor = Screen.width / 862.0f * 2.5f; // ratio of Screen size-original size (match with width)
// 862 is player camera width-size
// 2.5 is ratio of UI-GameObject size (match width width)
}
// Update is called once per frame
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment