Skip to content

Commit

Permalink
Multifile upload, Files button
Browse files Browse the repository at this point in the history
  • Loading branch information
bionicl committed Jul 27, 2018
1 parent 69fe00f commit 58bbb22
Show file tree
Hide file tree
Showing 7 changed files with 742 additions and 61 deletions.
32 changes: 22 additions & 10 deletions Assets/Animations/TabBox/Open.anim
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ AnimationClip:
m_Curve:
- serializedVersion: 2
time: 0
value: -127.19
inSlope: -340.85947
outSlope: -340.85947
value: -39.9
inSlope: -210.07977
outSlope: -210.07977
tangentMode: 0
- serializedVersion: 2
time: 0.41666666
value: -153
value: -54.350006
inSlope: 0
outSlope: 0
tangentMode: 136
Expand Down Expand Up @@ -65,7 +65,13 @@ AnimationClip:
m_Curve:
- serializedVersion: 2
time: 0
value: -111.23
value: -114.1
inSlope: 0
outSlope: 0
tangentMode: 136
- serializedVersion: 2
time: 0.41666666
value: -114.099976
inSlope: 0
outSlope: 0
tangentMode: 136
Expand Down Expand Up @@ -132,13 +138,13 @@ AnimationClip:
m_Curve:
- serializedVersion: 2
time: 0
value: -127.19
inSlope: -340.85947
outSlope: -340.85947
value: -39.9
inSlope: -210.07977
outSlope: -210.07977
tangentMode: 0
- serializedVersion: 2
time: 0.41666666
value: -153
value: -54.350006
inSlope: 0
outSlope: 0
tangentMode: 136
Expand Down Expand Up @@ -176,7 +182,13 @@ AnimationClip:
m_Curve:
- serializedVersion: 2
time: 0
value: -111.23
value: -114.1
inSlope: 0
outSlope: 0
tangentMode: 136
- serializedVersion: 2
time: 0.41666666
value: -114.099976
inSlope: 0
outSlope: 0
tangentMode: 136
Expand Down
18 changes: 18 additions & 0 deletions Assets/FilesBox.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class FilesBox : MonoBehaviour {

public GameObject fileNamePrefab;

public void SetupTexts(List<string> files) {
foreach (var item in files) {
GameObject go = Instantiate(fileNamePrefab, gameObject.transform.position, gameObject.transform.rotation);
go.transform.SetParent(gameObject.transform);
go.transform.localScale = go.transform.lossyScale;
go.GetComponent<Text>().text = item;
}
}
}
13 changes: 13 additions & 0 deletions Assets/FilesBox.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 58bbb22

Please sign in to comment.