티스토리 뷰
using UnityEngine;
using System.Collections;
public class Cmd_UI : MonoBehaviour {
public Texture[] iconTex;
// Use this for initialization
void Start () {
string[] iconNames = { "HeartMark", "HeartMark", "HeartMark", "HeartMark", "HeartMark" };
iconTex = new Texture[5];
for( int wi=0 ; wi<5 ; wi++ )
{
iconTex[wi] = Resources.Load(iconNames[wi]) as Texture;
}
}
// Update is called once per frame
void Update () {
}
void OnGUI()
{
int iSel = 0;
string[] strSel = { "1", "2", "3", "4", "5" };
Texture[] texSel = { iconTex[0], iconTex[1], iconTex[2], iconTex[3], iconTex[4] };
Rect wRect = new Rect( 0, Screen.height - 32*5 - 12, 32, 34 * 5 );
GUI.SelectionGrid( wRect, iSel, texSel, 1 );
}
}
'Programming > Unity3D' 카테고리의 다른 글
| Unity3D 에니메이션 구성성(Facial Ani 및 Eye Tracking에 관하여) (0) | 2010.08.04 |
|---|---|
| Head Look Controll (0) | 2010.06.01 |
| 달쑤니.. 이동과 충돌, 간단한 파티클까지.. (0) | 2010.05.25 |
| GUITexture Prefab 이용 동적 배열 생성 (0) | 2010.05.24 |
| Unity3D 로 만들어본 케릭 자동 이동.. (0) | 2010.05.17 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- hybrid
- 유니티
- 타석스크린
- TRex
- 타격연습기
- 실바웰드
- KT-88
- 6bq5
- Unity3D
- 프리앰프
- 송신기
- KT88
- EP200
- 시뮬전용
- 유니티3D
- gaui
- transistor
- 2a3
- 수신기
- 앰프
- iPhone
- 진공관
- rx-2404
- 하니비
- 250
- 웰케라
- 스윙팡
- bias
- 하이브리드
- ep-200
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
글 보관함