돌고래 홈페이지
ID:
PW:


  운영자(2015-08-11 21:54:28, Hit : 1442, Vote : 128
 NGUI 스크롤뷰

ScrollView 만들기

http://itpaper.co.kr/?mid=unity&document_srl=14082&listStyle=viewer
아이템이 중앙에 올 필요가 없으면 다음 스크립트 컴포넌트는 추가하지 않는다.
Grid --> Center Scroll View On Child
Item --> Center Scroll View on Click

http://smilejsu.tistory.com/447

http://devkorea.co.kr/bbs/board.php?bo_table=m03_qna&wr_id=30168



UIWrapContent
http://m.blog.naver.com/nicecapj/130189134231


AutoScroll 처리
    public UIScrollView scrollView;
    private Vector3 startingScrollPosition;
    public UIGrid gridControl;

    void Start ()
    {
        GameObject scroll_view = gameObject.transform.parent.gameObject;
        scrollView = scroll_view.GetComponent<UIScrollView>();
        gridControl = this.GetComponent<UIGrid>();
        startingScrollPosition = scrollView.panel.cachedTransform.localPosition;
    }



    IEnumerator MoveScroll()
    {
        yield return new WaitForSeconds(1.0f);

        autoScrollStep++;
        if (autoScrollStep < scrollItemCount)
        {
            StartCoroutine("MoveScroll");

            Vector3 target = new Vector3(0, gridControl.cellHeight);
            SpringPanel.Begin(scrollView.panel.cachedGameObject, startingScrollPosition + target, 8.0f);
            startingScrollPosition += target;
        }
        else
        {
            //스크롤이 끝났을때 처리
        }
    }




PBR 아트
파이썬 배우기

Copyright 1999-2018 Zeroboard / skin by zero