메뉴 건너뛰기

라이온하트 2nd edition

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

조회 수 77018 추천 수 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
번호 분류 제목 글쓴이 날짜 조회 수
85 Computer AjaxPlorer 4.2.0 매뉴얼 [한글관련 설정] LionHeart 2014.10.02 134584
84 OS apache, cBand module LionHeart 2014.10.01 113459
83 OS Apache, DDoS 방어모듈 1 LionHeart 2014.10.01 169881
82 Information MONSTA web FTP LionHeart 2014.10.01 134903
81 Information 404 NOT FOUND file LionHeart 2014.09.30 70526
80 OS Windows 8.1 administrator 계정 활성화 명령어 LionHeart 2014.09.25 150876
79 Android [ 유니티3D엔진 ] 유니티 4.3.4 -> 4.2.2 다운그레이드 badung007 2014.09.20 80158
78 OS Doly의 CentOS7 강좌16 6. CentOS 네트워크 1 - 개념, 2 - 이더넷 설정 LionHeart 2014.09.11 100171
77 OS CentOS 6.5 네트워크 설정 완전 초기화 LionHeart 2014.09.06 134075
76 OS vsftpd 접속할때 500 OOPS : child died 에러날때 LionHeart 2014.09.06 71706
75 OS DHCP 서버와 IP 마스크레이드 1 LionHeart 2014.09.01 123775
74 OS [SQL] mysql 에서 bigint(20), int(11) 의 의미 badung007 2014.08.28 87042
73 OS [SQL] mysql 에서 CHAR(40) 와 VARCHAR(40) 의 성능 차이 3 badung007 2014.08.28 73579
72 OS bind 9 리눅스 네임서버 설정방법 LionHeart 2014.08.27 89187
71 OS SULinux 2.0 웹서버(Apache) 설정 및 운영 LionHeart 2014.08.26 154476
70 OS 리눅스 - 아파치 2.x 트래픽 제한 LionHeart 2014.08.26 225187
69 IOS [ 유니티3D엔진 ] Object serializing in Unity on iOS devices. badung007 2014.08.26 65944
68 IOS [ 유니티3D엔진 ] XML Serialize Encrypt/Decrypt. badung007 2014.08.26 85580
67 IOS [ 유니티3D엔진 ] 유니티의 iOS 빌드는 왜 다른가? badung007 2014.08.26 74533
66 OS CentOS USB install (USB로 CentOS 설치하기) LionHeart 2014.08.22 111896
Board Pagination ‹ Prev 1 ... 3 4 5 6 7 8 9 10 11 12 Next ›
/ 12