오른쪽버튼 - 기호 삽입
문자코드 입력
203B'잡다한것들전부 > 기타' 카테고리의 다른 글
| [펌]Sublime Text 유용한 기능과 단축키 (0) | 2014.01.21 |
|---|---|
| 프로토 타입 (0) | 2014.01.21 |
| MS Word 당구장 표시 (0) | 2014.01.17 |
| 맥에서 스크린샷 캡쳐하기 (0) | 2014.01.17 |
| [펌][자료구조] 연결리스트 (Linked List) - 개념과 구현 (0) | 2014.01.13 |
| [펌] A* 알고리즘 (A Star Algorithm ) (0) | 2014.01.13 |
Trackback 0 And
Comment 0
= 스크린샷 단축키 =
화면의 그림을 파일로 저장 shift + command + 3
화면의 그림을 클립보드에 복사 control + shift + command + 3
선택한 영역의 그림을 파일로 저장 shift + command + 4
선택한 영억의 그림을 클립보드에 복사 control + shift + command + 4
'잡다한것들전부 > 기타' 카테고리의 다른 글
| 프로토 타입 (0) | 2014.01.21 |
|---|---|
| MS Word 당구장 표시 (0) | 2014.01.17 |
| 맥에서 스크린샷 캡쳐하기 (0) | 2014.01.17 |
| [펌][자료구조] 연결리스트 (Linked List) - 개념과 구현 (0) | 2014.01.13 |
| [펌] A* 알고리즘 (A Star Algorithm ) (0) | 2014.01.13 |
| 길찾기 알고리즘 소스들 (0) | 2014.01.13 |
Trackback 0 And
Comment 0
출처 : http://lab.gamecodi.com/board/zboard.php?id=GAMECODILAB_Lecture&page=1&sn1=&divpage=1&sn=on&ss=on&sc=on&keyword=%C0%AF%B4%CF%C6%BC&select_arrange=last_comment&desc=desc&no=317
using UnityEngine;using System;using System.Collections.Generic;/// <summary>/// A console that displays the contents of Unity's debug log./// </summary>/// <remarks>/// Developed by Matthew Miner (www.matthewminer.com)/// Permission is given to use this script however you please with absolutely no restrictions./// </remarks>public class Console : MonoBehaviour{public static readonly Version version = new Version(1, 0);struct ConsoleMessage{public readonly string message;public readonly string stackTrace;public readonly LogType type;public ConsoleMessage (string message, string stackTrace, LogType type){this.message = message;this.stackTrace = stackTrace;this.type = type;}}public KeyCode toggleKey = KeyCode.BackQuote;List<ConsoleMessage> entries = new List<ConsoleMessage>();Vector2 scrollPos;bool show;bool collapse;// Visual elements:const int margin = 20;Rect windowRect = new Rect(margin, margin, Screen.width - (2 * margin), Screen.height - (2 * margin));GUIContent clearLabel = new GUIContent("Clear", "Clear the contents of the console.");GUIContent collapseLabel = new GUIContent("Collapse", "Hide repeated messages.");void OnEnable () { Application.RegisterLogCallback(HandleLog); }void OnDisable () { Application.RegisterLogCallback(null); }void Update (){if (Input.GetKeyDown(toggleKey)) {show = !show;}}void OnGUI (){if (!show) {return;}windowRect = GUILayout.Window(123456, windowRect, ConsoleWindow, "Console");}/// <summary>/// A window displaying the logged messages./// </summary>/// <param name="windowID">The window's ID.</param>void ConsoleWindow (int windowID){scrollPos = GUILayout.BeginScrollView(scrollPos);// Go through each logged entryfor (int i = 0; i < entries.Count; i++) {ConsoleMessage entry = entries[i];// If this message is the same as the last one and the collapse feature is chosen, skip itif (collapse && i > 0 && entry.message == entries[i - 1].message) {continue;}// Change the text colour according to the log typeswitch (entry.type) {case LogType.Error:case LogType.Exception:GUI.contentColor = Color.red;break;case LogType.Warning:GUI.contentColor = Color.yellow;break;default:GUI.contentColor = Color.white;break;}GUILayout.Label(entry.message);}GUI.contentColor = Color.white;GUILayout.EndScrollView();GUILayout.BeginHorizontal();// Clear buttonif (GUILayout.Button(clearLabel)) {entries.Clear();}// Collapse togglecollapse = GUILayout.Toggle(collapse, collapseLabel, GUILayout.ExpandWidth(false));GUILayout.EndHorizontal();// Set the window to be draggable by the top title barGUI.DragWindow(new Rect(0, 0, 10000, 20));}/// <summary>/// Logged messages are sent through this callback function./// </summary>/// <param name="message">The message itself.</param>/// <param name="stackTrace">A trace of where the message came from.</param>/// <param name="type">The type of message: error/exception, warning, or assert.</param>void HandleLog (string message, string stackTrace, LogType type){ConsoleMessage entry = new ConsoleMessage(message, stackTrace, type);entries.Add(entry);}}
유용하네요
아무 GameObject에 컴포넌트로 붙이고
` (FPS에서 콘솔 버튼으로 많이 쓰는) 누르시면.... 좋겠으나...
폰은... 자판이 없을테니 별도로 콜하는 메서드 만드셔야합니다.
show 키변경으로 쓰시려면 KeyCode.Menu 권장
'잡다한것들전부 > 팁' 카테고리의 다른 글
| 유니티 스크립트 에디터ㄱ (0) | 2014.01.21 |
|---|---|
| Animation Parameters (0) | 2014.01.18 |
| [펌] 유니티 디바이스 화면에 디버깅 콘솔 찍기 (0) | 2014.01.16 |
| [펌] 유니티3D Conditional Attribute 사용 (0) | 2014.01.16 |
| [펌] 유니티 엔진 - 텍스트 파일을 이용하여 에셋 번들 한꺼번에 생성 하기 (0) | 2014.01.16 |
| [펌] 유니티엔진 - 유니티 스키닝 설정. (0) | 2014.01.16 |
Trackback 0 And
Comment 0


