Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
ButtonPusher
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
Button Pusher
ButtonPusher
Commits
e284086c
Commit
e284086c
authored
Aug 24, 2017
by
Chae Ho Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SetSelect
parent
c82ef40c
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
344 deletions
+26
-344
Track Item.prefab
Assets/Resources/Track Item.prefab
+3
-3
SetSelect.unity
Assets/Scene/SetSelect.unity
+17
-339
TrackManager.cs
Assets/Script/TrackManager.cs
+6
-2
No files found.
Assets/Resources/Track Item.prefab
View file @
e284086c
...
...
@@ -173,10 +173,10 @@ RectTransform:
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0
,
y
:
1
}
m_AnchorMax
:
{
x
:
0
,
y
:
1
}
m_AnchorMin
:
{
x
:
0
.5
,
y
:
1
}
m_AnchorMax
:
{
x
:
0
.5
,
y
:
1
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
0
}
m_SizeDelta
:
{
x
:
8
00
,
y
:
150
}
m_SizeDelta
:
{
x
:
8
20
,
y
:
176
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!224
&224919316165582960
RectTransform
:
...
...
Assets/Scene/SetSelect.unity
View file @
e284086c
This diff is collapsed.
Click to expand it.
Assets/Script/TrackManager.cs
View file @
e284086c
...
...
@@ -24,6 +24,10 @@ public class TrackManager : MonoBehaviour {
// Update is called once per frame
void
Update
()
{
if
(
Input
.
GetKeyDown
(
KeyCode
.
UpArrow
))
trackList
.
transform
.
GetChild
(
0
).
SetAsLastSibling
();
if
(
Input
.
GetKeyDown
(
KeyCode
.
DownArrow
))
trackList
.
transform
.
GetChild
(
trackList
.
transform
.
childCount
-
1
).
SetAsFirstSibling
();
}
void
LoadTracks
()
...
...
@@ -35,8 +39,8 @@ public class TrackManager : MonoBehaviour {
foreach
(
TrackInfo
track
in
tracks
)
{
var
trackItem
=
Instantiate
(
trackItemPrefab
);
trackItem
.
transform
.
SetParent
(
trackList
.
transform
);
var
trackItem
=
Instantiate
(
trackItemPrefab
,
trackList
.
transform
);
//
trackItem.transform.SetParent(trackList.transform);
trackItem
.
AddComponent
<
TrackInfoHolder
>().
trackInfo
=
track
;
...
...
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