'2013/12'에 해당되는 글 65건
- 2013.12.29 RacaseHit 사용시 디버그
- 2013.12.29 유니티 오브젝트 풀 기법
- 2013.12.24 string::find와 string::npos 관계
- 2013.12.23 sd 카드 접근
- 2013.12.21 유니티 2d - 동영상
- 2013.12.21 유니티 프로젝트 중간에 3d -> 2d 변경
- 2013.12.19 c 와 c++ 관련 자료
- 2013.12.19 유니티 4.3 2d 관련 자료 (2)
- 2013.12.19 유니티 디바이스에 디버깅 콘솔 찍기
- 2013.12.18 오비비 테스트 apk
static function DrawRay (start : Vector3, dir : Vector3, color : Color = Color.white) : void
function Update () {
var forward : Vector3 = transform.TransformDirection(Vector3.forward) * 10;
Debug.DrawRay (transform.position, Vector3.forward * 10, Color.green);
}
Debug.DrawRay(transform.position, Vector3.down * 2f, Color.green);
if (Physics.Raycast(transform.position, Vector3.down, out hit, 2f))
{
}
'잡다한것들전부 > 팁' 카테고리의 다른 글
| 유니티 최적화팁 transform 사용시 (0) | 2014.01.01 |
|---|---|
| 유니티 공식 사이트 데모 프로젝트 (0) | 2013.12.31 |
| RacaseHit 사용시 디버그 (0) | 2013.12.29 |
| 유니티 오브젝트 풀 기법 (0) | 2013.12.29 |
| 유니티 2d - 동영상 (0) | 2013.12.21 |
| 유니티 프로젝트 중간에 3d -> 2d 변경 (0) | 2013.12.21 |
http://dmayance.com/unity-paint-part-2/
'잡다한것들전부 > 팁' 카테고리의 다른 글
| 유니티 공식 사이트 데모 프로젝트 (0) | 2013.12.31 |
|---|---|
| RacaseHit 사용시 디버그 (0) | 2013.12.29 |
| 유니티 오브젝트 풀 기법 (0) | 2013.12.29 |
| 유니티 2d - 동영상 (0) | 2013.12.21 |
| 유니티 프로젝트 중간에 3d -> 2d 변경 (0) | 2013.12.21 |
| 유니티 4.3 2d 관련 자료 (2) | 2013.12.19 |
find로 찾는 단어나 문자열이 없으면 std::string::npos 반환
예)
jpg와 jpeg검색후 처리
if ((std::string::npos != filename.find(".jpg")) || (std::string::npos != filename.find(".jpeg")))
{
ret = CCImage::kFmtJpg;
}
'잡다한것들전부 > 팁' 카테고리의 다른 글
| 영어와 숫자만 가능하게 처리하기 (0) | 2014.01.02 |
|---|---|
| TextInputTest 예제 소스 (0) | 2014.01.02 |
| string::find와 string::npos 관계 (0) | 2013.12.24 |
| sd 카드 접근 (0) | 2013.12.23 |
| c 와 c++ 관련 자료 (0) | 2013.12.19 |
| 오비비 테스트 apk (0) | 2013.12.18 |
//경로 설정 sdcard 접근 -> sdcard내용 읽어올수 있음
// vector<string> searchPath;
// char * path = "/mnt/sdcard/Android/obb/com.test.obb.hjh"; //sd카드 경로
// searchPath.push_back(path);
// CCFileUtils::sharedFileUtils()->setSearchPaths(searchPath);
'잡다한것들전부 > 팁' 카테고리의 다른 글
| TextInputTest 예제 소스 (0) | 2014.01.02 |
|---|---|
| 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 |
http://youtu.be/ksoGW2j2E0Q
'잡다한것들전부 > 팁' 카테고리의 다른 글
| RacaseHit 사용시 디버그 (0) | 2013.12.29 |
|---|---|
| 유니티 오브젝트 풀 기법 (0) | 2013.12.29 |
| 유니티 2d - 동영상 (0) | 2013.12.21 |
| 유니티 프로젝트 중간에 3d -> 2d 변경 (0) | 2013.12.21 |
| 유니티 4.3 2d 관련 자료 (2) | 2013.12.19 |
| 유니티 디바이스에 디버깅 콘솔 찍기 (0) | 2013.12.19 |
edit - project Settings - Editor
'잡다한것들전부 > 팁' 카테고리의 다른 글
| 유니티 오브젝트 풀 기법 (0) | 2013.12.29 |
|---|---|
| 유니티 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 |
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 |
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:
And finally here the original presentation from Unite 2013 a few months ago:
'잡다한것들전부 > 팁' 카테고리의 다른 글
| 유니티 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 |
출처 : https://gist.github.com/mminer/975374
Console.cs
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);}}
'잡다한것들전부 > 팁' 카테고리의 다른 글
| 유니티 프로젝트 중간에 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 |
| 유니티 안드로이드 디버깅 방법 (0) | 2013.12.16 |
https://play.google.com/apps/testing/com.test.obb.hjh
'잡다한것들전부 > 팁' 카테고리의 다른 글
| 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 |
| 포물선 운동 관련 소스 (0) | 2013.12.10 |





