BLOG main image
for our next (37)
Dev (32)
iOS (12)
Unity3D (16)
Android (4)
Mac (1)
Windows (2)
FreeTalk (1)
Shell (1)
Private (0)
Visitors up to today!
Today hit, Yesterday hit
daisy rss
tistory 티스토리 가입하기!
'Dev/Unity3D'에 해당되는 글 16건
2010. 12. 14. 00:58
Awake()에서 FindObjectOfType 로 오브젝트를 못 찾는 경우가 생겼다. 아직 찾아야할 오브젝트가 안만들어져서 그런것같다. Find 를 Start() 로 옮기면 만서 오케이..



iPhone 에서 작성된 글입니다.
2010. 11. 9. 21:30
2010. 11. 2. 16:24
OpenFeint 에서 곧 픽스된 버전을 발표하겠지만 임시로 사용.

- Unity3D -
1. OFEditorIntegration.cs 안에 OpenFeintSettingsWizzard class 를 따로 파일을 만들어 생성.
2. OpenFeint/Set Application Initialization Settings... : setting 해주시고 apply.
3.AppController+OpenFeint.mm
- 코드 수정
extern bool gDidResignActive = false; ( 이건 extern 에 initialized 했다고 경고가 뜬다.흠..)
 // Give ourselves access to the OpenFeint Unity scripts via Mono.
NSString *path = [[[NSBundle mainBundle] bundlePath]
                      stringByAppendingPathComponent:@"Data/Managed/Assembly-CSharp-firstpass.dll"];

4. Build 하기 전에 꼭 xcode 를 종료.(build 하면 이것저것 추가됩.)

- XCode -
5. OpenFeint source add 해주시고.
6. build -> 수많은 error 가...--;

- error fix -
7. OpenFeint/OpenFeintSettings.h  code 추가.
extern const NSString* OpenFeintSettingInvertNotifications;

8. OpenFeint/api/internal/OpenFeint/OpenFeintSettings.mm code 추가
const NSString* OpenFeintSettingInvertNotifications = @"OpenFeintSettingInvertNotifications";

9. Frameworks 에 아래 framwwork 추가
GameKit.framework
AddressBook.framework
AddressBookUI.framework



== 성공 ==
ps. 수정된 unitypackage 첨부.(7, 8 번만 수동으로 해주면 됨)

'Dev > Unity3D' 카테고리의 다른 글

FindObjectOfType fail.  (0) 2010.12.14
Unity Script 와 Obejct-C 연동.  (0) 2010.11.09
OnGUI() 와 Garbage Collection  (0) 2010.10.08
Optimizing with Unity iPhone, the first three things I’ll do…  (0) 2010.09.16
Unity3D iPhone frame 변경  (2) 2010.09.06
2010. 10. 8. 11:38
OnGUI 호출시 내부에서 GC 가 호출되는데 그 타임에 CPU가 팍팍 튄다..
가급적 OnGUI 를 사용하지 말고 써드파티 GUI툴을 사용해야겠다.

참고 : http://forum.unity3d.com/threads/60217-Garbage-collector-spikes-because-of-GUI?highlight=garbage
2010. 9. 16. 17:30

1. Use InvokeRepeating()

MonoBehaviour.InvokeRepeating  

function InvokeRepeating (methodName : string, time : float, repeatRate : float) : void

Description

Invokes the method methodName in time seconds.

After the first invocation repeats calling that function every repeatRate seconds.


2. Force Garbage Collecting every some times
- System.GC.Collect()

3. Rendering stats
  • Stay under 7.5k tris
  • Stay under 20 draw calls
  • 'Dev > Unity3D' 카테고리의 다른 글

    FindObjectOfType fail.  (0) 2010.12.14
    Unity Script 와 Obejct-C 연동.  (0) 2010.11.09
    Unity3D 3.0 과 OpenFeint 2.7.4 연동  (4) 2010.11.02
    OnGUI() 와 Garbage Collection  (0) 2010.10.08
    Unity3D iPhone frame 변경  (2) 2010.09.06
    2010. 9. 6. 11:36
    * unity3d 3.0 으로 iphone build 하면 iphone 내에서 30 frame으로 고정된다.
    *변경하기
    -  unity3d 로 build한 iphone 프로젝트의 AppController.mm 의 #define kFPS 의 값을 변경후 XCode 내에서 build 한다.
    - unity3d 로 재빌드하면 위 값은 다시 30으로 고정된다.
    prev"" #1 #2 next