c 와 c++ 관련 자료

|

http://www.soen.kr/

'잡다한것들전부 > ' 카테고리의 다른 글

string::find와 string::npos 관계  (0) 2013.12.24
sd 카드 접근  (0) 2013.12.23
c 와 c++ 관련 자료  (0) 2013.12.19
오비비 테스트 apk  (0) 2013.12.18
중급 개발자가 되는 방법 5가지  (0) 2013.12.16
배경 무한 스크롤링  (0) 2013.12.11
Trackback 0 And Comment 0

유니티 4.3 2d 관련 자료

|

Here is a "2D Game Development Overview" from the Unity fellows:

http://blogs.unity3d.com/2013/11/12/unity-4-3-2d-game-development-overview/

The sample project can be downloaded here:

https://www.assetstore.unity3d.com/#/content/11228

The documentation concerning the 2D components:

http://docs.unity3d.com/Documentation/Components/comp-2DGroup.html

A brand new carefully crafted tutorial (in text and animations, not a video):

http://pixelnest.io/2013/11/unity-2D-tutorial/

Yet another in video:

http://brackeys.com/preview/2d-unity-4-3-course/

And this video is about the demo and from the Unity team:

https://www.youtube.com/watch?v=4qE8cuHI93c

Here is a live test video:

https://www.youtube.com/watch?v=_qS7DD5Tz_A

Here you can follow news from the Unity fellows on the 2D theme:

http://unity3d.com/#2d

And finally here the original presentation from Unite 2013 a few months ago:

Unite 2013 - New 2D Workflows


'잡다한것들전부 > ' 카테고리의 다른 글

유니티 2d - 동영상  (0) 2013.12.21
유니티 프로젝트 중간에 3d -> 2d 변경  (0) 2013.12.21
유니티 4.3 2d 관련 자료  (2) 2013.12.19
유니티 디바이스에 디버깅 콘솔 찍기  (0) 2013.12.19
유니티 단축키  (0) 2013.12.18
2d toolkit 공식 사이트  (0) 2013.12.18
Trackback 0 And Comment 2
  1. Favicon of http://section.blog.naver.com/ BlogIcon 창랑 2013.12.19 17:59 address edit & del reply

    좋은 팁 감사합니다. 유니티 2d 에 대해서 관심이 많았는데 아직 나온지 얼마 안되서 그런지 자료가 별로 없더라구요 ^^;; 아~ 그리고 우연히 들어왔는데 링크에 제 블로그가 링크되어 있네요~ 감사합니다 ^^

    • Favicon of https://hyunity3d.tistory.com BlogIcon 히아레인 2013.12.19 23:55 신고 address edit & del

      저야말로 감사합니다. 제가 링크 걸었던 블로그들은 굉장히 저에게 도움이 되었던 블로그 들이거든요 ^^;

유니티 디바이스에 디버깅 콘솔 찍기

|

출처 : https://gist.github.com/mminer/975374


Console.cs

C#


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 entry
for (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 it
if (collapse && i > 0 && entry.message == entries[i - 1].message) {
continue;
}
 
// Change the text colour according to the log type
switch (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 button
if (GUILayout.Button(clearLabel)) {
entries.Clear();
}
// Collapse toggle
collapse = GUILayout.Toggle(collapse, collapseLabel, GUILayout.ExpandWidth(false));
 
GUILayout.EndHorizontal();
 
// Set the window to be draggable by the top title bar
GUI.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);
}
}


Trackback 0 And Comment 0