반응형
Notice
Recent Posts
Recent Comments
«   2025/01   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

Do Something IT

아이폰 안드로이드 플렛폼 Indicator loading 본문

Unity3D

아이폰 안드로이드 플렛폼 Indicator loading

아낙시만더 2013. 10. 17. 13:47
반응형

Handheld.StartActivityIndicator

static function StartActivityIndicator(): void;
Description

Starts os activity indicator.

Please be warned that this informs os ui system to start. For actual animation to take effect you usually need to wait till the end of this frame. So if you want activity indicator to be animated during synced operation, please use coroutines.
	IEnumerator Load()
    {
        #if UNITY_IPHONE
            Handheld.SetActivityIndicatorStyle(iOSActivityIndicatorStyle.Gray);
        #elif UNITY_ANDROID
            Handheld.SetActivityIndicatorStyle(AndroidActivityIndicatorStyle.Small);
        #endif

Handheld.StartActivityIndicator(); yield return new WaitForSeconds(0); Application.LoadLevel(1); }

void OnGUI() { if( GUI.Button(new Rect(10, 10, 200, 200), "Load!") ) StartCoroutine(Load()); }


반응형
Comments