'잡다한것들전부'에 해당되는 글 207건
- 2014.01.01 유니티 최적화팁 transform 사용시
- 2013.12.31 유니티 공식 사이트 데모 프로젝트
- 2013.12.30 c# delegate
- 2013.12.30 뒤로가기 버튼 클릭시 종료 팝업후 종료 하기
- 2013.12.30 c# 제네릭
- 2013.12.30 INSTALL_FAILED_INSUFFICIENT_STORAGE 오류시
- 2013.12.29 RacaseHit 사용시 디버그
- 2013.12.29 유니티 오브젝트 풀 기법
- 2013.12.24 string::find와 string::npos 관계
- 2013.12.23 sd 카드 접근
Transform 을 사용하는 예가 있는데 최적화 방법중에
js 기준으로
var myTransform : Transform;
function Awake() {
myTransform = transform;
}
function Update() {
myTransform.position.y++;
}
이런식으로 참조해서 쓰면 성능향상에 좋다고합니다. Transform 형을 사용한 예입니다.
'잡다한것들전부 > 팁' 카테고리의 다른 글
| 특정 vector3 값 만 바꿀때 (0) | 2014.01.01 |
|---|---|
| 유니티 모노디벨롭 배경색깔 변경하기. (0) | 2014.01.01 |
| 유니티 최적화팁 transform 사용시 (0) | 2014.01.01 |
| 유니티 공식 사이트 데모 프로젝트 (0) | 2013.12.31 |
| RacaseHit 사용시 디버그 (0) | 2013.12.29 |
| 유니티 오브젝트 풀 기법 (0) | 2013.12.29 |
http://unity3d.com/gallery/demos/demo-projects
'잡다한것들전부 > 팁' 카테고리의 다른 글
| 유니티 모노디벨롭 배경색깔 변경하기. (0) | 2014.01.01 |
|---|---|
| 유니티 최적화팁 transform 사용시 (0) | 2014.01.01 |
| 유니티 공식 사이트 데모 프로젝트 (0) | 2013.12.31 |
| RacaseHit 사용시 디버그 (0) | 2013.12.29 |
| 유니티 오브젝트 풀 기법 (0) | 2013.12.29 |
| 유니티 2d - 동영상 (0) | 2013.12.21 |
// Declare delegate -- defines required signature: delegate double MathAction(double num); class DelegateTest { // Regular method that matches signature: static double Double(double input) { return input * 2; } static void Main() { // Instantiate delegate with named method: MathAction ma = Double; // Invoke delegate ma: double multByTwo = ma(4.5); Console.WriteLine("multByTwo: {0}", multByTwo); // Instantiate delegate with anonymous method: MathAction ma2 = delegate(double input) { return input * input; }; double square = ma2(5); Console.WriteLine("square: {0}", square); // Instantiate delegate with lambda expression MathAction ma3 = s => s * s * s; double cube = ma3(4.375); Console.WriteLine("cube: {0}", cube); } // Output: // multByTwo: 9 // square: 25 // cube: 83.740234375 }
'잡다한것들전부 > C#' 카테고리의 다른 글
| 유니티 c# RayCast 디버그 방법(눈으로 디버그라인을 그리는방법) (0) | 2014.01.19 |
|---|---|
| [펌]C# 델리게이트 및 이벤트 함수 (1) | 2014.01.13 |
| [queue] Queue 관련 함수 (Dequeue, Enqueue, Peek) (0) | 2014.01.12 |
| C# 동영상 강의 모은 곳 사이트 주소 (0) | 2014.01.04 |
| c# delegate (0) | 2013.12.30 |
| c# 제네릭 (0) | 2013.12.30 |
'잡다한것들전부 > 안드로이드' 카테고리의 다른 글
| adb 패스 설정 (0) | 2014.01.07 |
|---|---|
| 안드로이드 동적 생성 view button progressbar 등 (0) | 2014.01.06 |
| 뒤로가기 버튼 클릭시 종료 팝업후 종료 하기 (0) | 2013.12.30 |
| INSTALL_FAILED_INSUFFICIENT_STORAGE 오류시 (0) | 2013.12.30 |
| Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE (0) | 2013.12.16 |
| 프로젝트 오른쪽클릭 ->안드로이드툴->Fix 클릭 하시면되용 (0) | 2013.12.16 |
c++의 템플릿과 유사한 것
// Declare the generic class. public class GenericList<T> { void Add(T input) { } } class TestGenericList { private class ExampleClass { } static void Main() { // Declare a list of type int. GenericList<int> list1 = new GenericList<int>(); // Declare a list of type string. GenericList<string> list2 = new GenericList<string>(); // Declare a list of type ExampleClass. GenericList<ExampleClass> list3 = new GenericList<ExampleClass>(); } }
'잡다한것들전부 > C#' 카테고리의 다른 글
| 유니티 c# RayCast 디버그 방법(눈으로 디버그라인을 그리는방법) (0) | 2014.01.19 |
|---|---|
| [펌]C# 델리게이트 및 이벤트 함수 (1) | 2014.01.13 |
| [queue] Queue 관련 함수 (Dequeue, Enqueue, Peek) (0) | 2014.01.12 |
| C# 동영상 강의 모은 곳 사이트 주소 (0) | 2014.01.04 |
| c# delegate (0) | 2013.12.30 |
| c# 제네릭 (0) | 2013.12.30 |
android:installLocation="preferExternal"
메모리 공간이 부족해서 나는 오류이므로
manifest 에 추가
'잡다한것들전부 > 안드로이드' 카테고리의 다른 글
| 안드로이드 동적 생성 view button progressbar 등 (0) | 2014.01.06 |
|---|---|
| 뒤로가기 버튼 클릭시 종료 팝업후 종료 하기 (0) | 2013.12.30 |
| INSTALL_FAILED_INSUFFICIENT_STORAGE 오류시 (0) | 2013.12.30 |
| Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE (0) | 2013.12.16 |
| 프로젝트 오른쪽클릭 ->안드로이드툴->Fix 클릭 하시면되용 (0) | 2013.12.16 |
| gcm 예제 (0) | 2013.12.06 |
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 |


