Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
curvedflats
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
6
Issues
6
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Flatland
curvedflats
Commits
b2542abb
Commit
b2542abb
authored
5 years ago
by
17김현학
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Annotation of Screenfactor
parent
8864b943
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
UIManager.cs
Assets/Scripts/UIManager.cs
+3
-1
No files found.
Assets/Scripts/UIManager.cs
View file @
b2542abb
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment