메뉴 건너뛰기

라이온하트 2nd edition

홈페이지를 새롭게 리뉴얼합니다.

조회 수 77104 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

   

    public IEnumerator IE_NextLoadLevel(string SceneName)
    {
        // async.progress pc버전에서는 안된다
        AsyncOperation async = Application.LoadLevelAsync( SceneName );

        while (async.isDone == false)
        {
            float p = async.progress * 100f;
            int pRounded = Mathf.RoundToInt(p);
            Popup_scene_loding.transform.FindChild("Progress_Label").GetComponent<UILabel>().text = pRounded.ToString() + "%";

            //LoadingBar를 NGUI로 하나 만들고 NGUI의 ProgressBar의 SliderValue 값에 넣어 줍니다.
            Popup_scene_loding.SetActive(true);
            Popup_scene_loding.transform.FindChild("Loding_Sprite").GetComponent<UISprite>().fillAmount = async.progress;
            Debug.Log(async.progress);
            yield return true;
        }

        //1.0 != asynce.progress 아닐 수도 있기에 1.0으로 고정
        Popup_scene_loding.transform.FindChild("Loding_Sprite").GetComponent<UISprite>().fillAmount = 1.0f;

    }



List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
45 C# C# 동영상 녹화 LionHeart 2014.05.21 126732
44 Information 나눔글꼴 웹폰트 LionHeart 2014.05.04 110641
43 IOS 유저 기기 고유 ID [SystemInfo.deviceUniqueIdentifier] file badung007 2014.04.25 106196
42 C# 웹캠 영상출력 LionHeart 2014.03.31 157351
» Android [유니티3D엔진] 유니티 Scene 로딩 badung007 2014.03.21 77104
40 Computer Free Proxy List LionHeart 2014.02.04 89746
39 C# 초간단 FTP LionHeart 2014.01.29 112208
38 C# C# Simple FTP Class LionHeart 2014.01.29 169993
37 C# 자료형 변환 Convert.ToDouble 과 double.parse 의 차이 1 badung007 2014.01.16 87982
36 Computer icon 만들기 LionHeart 2014.01.13 83178
35 OS Windows 2012 설치방법에 관한 문서 LionHeart 2013.12.27 135881
34 Android [유니티3D엔진] 유니티 최적화 _ 프레임 줄이기 badung007 2013.12.06 98472
33 Android [유니티3D엔진] C# 어레이리스트 dat 파일 로드 및 저장 (바이너리 파일로 변환) badung007 2013.12.05 75633
32 Android [유니티3D엔진] C# 어레이리스트 xml 파일 저장 badung007 2013.12.04 135283
31 C# C#에서 list Class 사용방법 1 LionHeart 2013.12.03 104138
30 Computer zip 압축파일 비밀번호 Crack 1 file LionHeart 2013.12.01 118276
29 OS 네트워크 스니핑 도구(엄청 강력함) file LionHeart 2013.12.01 72882
28 Android [유니티3D엔진] NGUI 해상도 비율적으로 풀화면 badung007 2013.11.29 81714
27 C# C# FTP 종합 LionHeart 2013.11.04 211477
26 C# FTP에서 파일 삭제하는 방법 LionHeart 2013.11.04 107185
Board Pagination ‹ Prev 1 ... 3 4 5 6 7 8 9 10 11 12 Next ›
/ 12