티스토리 뷰
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
- 타석스크린
- 스윙팡
- 시뮬전용
- rx-2404
- EP200
- 실바웰드
- hybrid
- 하니비
- TRex
- 6bq5
- 수신기
- ep-200
- gaui
- 250
- KT88
- bias
- 유니티
- 2a3
- 타격연습기
- 웰케라
- 하이브리드
- 송신기
- Unity3D
- 앰프
- 진공관
- iPhone
- 프리앰프
- KT-88
- 유니티3D
- transistor
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함