본문 바로가기

2014/09

유니티에서 장면전환시 Fade in 효과 구현 유니티에서 장면전환시 Fade in 효과 구현 게임의 시작화면( Start Scene ) 이 완성되었다면 시작화면이 부드럽게 나타나도록 효과를 적용할 때 다음과 같은 방법을 사용할 수 있다 Hierarchy 뷰에 빈 게임 오브젝트를 하나 추가하고 아래의 스크립트를 포함시킨다.추가된 빈 게임 오브젝트는 시작화면이 나타날 때 Fade In 효과만 보여주고 Destroy() 에 의해 제거된다 #pragma strict var fadeTexture:Texture; // 임의의 이미지를 드래그하여 설정internal var startColor:Color = Color(0,0,0,1);internal var endColor:Color = Color(0,0,0,0);internal var currentColor:Co.. 더보기
[Unity] 유니티의 메모리 관리 유니티 문서를 보면 언급되는 Managed Memory란 단서에서 흔히 추측하기로 유니티가 알아서 모든 메모리를 잘 관리하고 있을 것 처럼 생각되지만 사실은 그렇지 않다는 것이 함정. 사실은 유니티 시스템은 메모리를 어떻게 처리할 것인가에 대한 단서를 당신이 만드는 코드내에서 제공해주기를 원한다. 따라서 잘못된 코드는 줄줄 새는 메모리로 당신의 앱을 디바이스에서 뻗어 버리게 만들것이다. 요즘은 모바일 디바이스에서 조차 64bit 시스템(iPhone 5s)가 올라가고 기본 장착 메모리가 2Gb 이상이 되는 등 모바일 앱으로서는 무한한 자원이 있는것 같지만 사실상 아직도 지구상의 대부분의 유저는 허접한 디바이스로 연명하고 있다는 것을 기억해야 한다. 유니티 어플리케이션이 사용하는 메모리 종류 유니티에서 사용.. 더보기
[Mac] 맥에서 숨은파일/폴더 표시하기 숨김파일 표시하기 우선 터미널을 실행시킵니다. 그리고 터미널에서 밑에 코맨드를 입력합니다.defaults write com.apple.finder AppleShowAllFiles -bool true엔터를 눌러 코맨드를 실행합니다.아직까지는 숨김파일이 보이지 않습니다.숨김파일을 볼려면 재시작을 하거나 밑에 있는 코맨드를 터미널에 입력한후 엔터키를 누릅니다. killall Finder출처 : http://angrygoguma.tistory.com/55 더보기
[Unity3d] android facebook Release Key Hash 발급. I used following steps to generate a Key Hash for my app in facebook: (I am using Mac OSX 10.8)First open a terminal (open a command prompt in windows).Navigate in the terminal to the directory where your Android debug.keystore is stored.Mostly it will located under “/Users/user_name/.android/” (In Windows will be C:\Documents and Settings\.android).Once you are in the “.android” directory, run .. 더보기
ios 빌드 오류(앱 GameCenter 기능 제외 후 생긴 오류) 오류 내용. Undefined symbols for architecture armv7: "_OBJC_CLASS_$_GKLeaderboardViewController", referenced from: objc-class-ref in libiPhone-lib.a(GameCenter.o) "_OBJC_CLASS_$_GKScore", referenced from: objc-class-ref in libiPhone-lib.a(GameCenter.o) "_OBJC_CLASS_$_GKAchievement", referenced from: objc-class-ref in libiPhone-lib.a(GameCenter.o) "_OBJC_CLASS_$_GKAchievementDescription", referenced .. 더보기
Unity and IOS push notifications *Unity and IOS push notifications IntroductionGetting Started: Brief OverviewWhat You Need for Push NotificationsAnatomy of a Push NotificationPush Notification GotchasProvisioning Profiles and Certificates.Generating the Certificate Signing RequestMaking the App ID and SSL CertificateMaking a PEM FileMaking the Provisioning ProfileStep 1: Select TypeStep 2: ConfigureStep 3: GenerateStep 4: Sel.. 더보기