SlideShare a Scribd company logo
1 of 10
Stage 1-2. 버튼 누른 후 화면 배치
이제 본격적으로 게임을 만들어 봅시다.
다음 화면을 만들어 보자.
UI 중 Scroll View!
 각각 버튼들을 누르면 UI들이 바뀌어야 한다.
 그 중 가장 많이 사용되는 Scroll View에
대해 알아보자!
Scroll View(1)
 inspector View부터 살펴보자!
 content : Scroll 내부에 넣어둘 내용물을 의미
 horizontal, vertical : 가로 스크롤, 세로 스크롤 사용 유무
 movement type : 부드럽게 움직일 것인가, Handle로만 움직일 것인가 등을 설정
 intertia : 관성, 즉 스크롤을 했을 때 그 방향으로 더 미끄러지면서 이동하는 것
 Scroll Sensitivity : 마우스 스크롤 했을 때 얼마나 많이 움직일 것인지 설정
 Viewport : 스크롤 내부 보이는 화면을 의미(기본)
 horizontal, vertical Scrollbar : 가로, 세로로 화면을 움직이게 하는 bar로 현재 스크
롤 위치를 보여주는 등의 역할을 한다.
ScrollView(2)
 우리는 세로 Scroll만 필요하기 때문에 Horizontal의 체크를 풀고,
Horizontal Scrollbar를 삭제해줍니다.
 Content 내부에 Scroll 내부에 넣어줄 버튼, 이미지, 텍스트 등을 배치할 수
있습니다.
 앞서 해본 Layout을 활용하면 더욱 쉽고 빠르게 배치할 수 있습니다.
 Content 내부에 Vertical Layout Group 과
Content Size Fitter를 추가해 봅시다.
Vertical Layout Group(1)
 Vertical Layout Group이 없을 경우에는 Content 내부에 일렬로 정렬을 할
수 있습니다.
 없을 때와 있을 때 배치를 직접 해보면서 비교해보면 좋습니다.
 다만, 버튼이 추가 되어도 Content의 크기는 계속 고정되어 있기 때문에 수
동으로 계속 Content의 크기를 바꿔줘야 하는 단점이 있습니다.
 이를 극복하기 위하여 Content Size Fitter을 추가합니다.
Content Size Fitter
 Content Size Fitter는 용어 그대로 내용물에 따라
Content 의 크기를 자동으로 조절해줍니다.
 Horizontal Fit 과 Vertical Fit 2가지가 있습니다.
 Vertical Fit 을 Preferred Size로 바꾸면 세로 길이를 수동으로 조절할 수 없
지만, 내용물에 따라 자동으로 크기가 조정됨을 알 수 있습니다.
 다만 또 문제가 한 가지 생깁니다.
 Content 내부에 추가되는 크기를 수동으로 조절할 수 없다는 점입니다.
 우측 이미지처럼, 버튼을 추가해도 매우 작게 추가되고 바꿀 수 없습니다.
 따라서 각 버튼에 Layout Element를 추가합니다.
Layout Element
 Layout Element는 각 요소들을 하나씩 컨트롤 합니다.
 Ignore Layout : 상위 Layout을 완전히 무시합니다.
 다음과 같은 방법으로 크기가 할당됩니다.
 Min 에 할당한 크기만큼 배치 됩니다. 그 후 Preferred 공간을 할당할 공간이
남아 있다면 Preferred 에 할당한 크기만큼 배치가 됩니다. 그 뒤에도 남은
공간이 있다면 Flexible에 할당한 크기 만큼 더 배치가 됩니다.
 여기서 Flexible 은 (0.0001~ 1)의 크기를 가지며 그 이상의 값은 무의미합니
다.
 우리는 Content Size Fitter를 이미 사용하였기 때문에 공간에 제약이 없습니
다. 따라서, Min이나 Preferred 둘 중 아무 곳에나 원하는 크기를 적으면 똑
같이 작동합니다.
Quest 배치하기!
Stage 2-2 로 이동!
 Stage 2-2 에서 layout 바꿔 끼는 법에 대해 배워보겠습니다.

More Related Content

Recently uploaded

공학 관점에서 바라본 JMP 머신러닝 최적화
공학 관점에서 바라본 JMP 머신러닝 최적화공학 관점에서 바라본 JMP 머신러닝 최적화
공학 관점에서 바라본 JMP 머신러닝 최적화JMP Korea
 
JMP를 활용한 전자/반도체 산업 Yield Enhancement Methodology
JMP를 활용한 전자/반도체 산업 Yield Enhancement MethodologyJMP를 활용한 전자/반도체 산업 Yield Enhancement Methodology
JMP를 활용한 전자/반도체 산업 Yield Enhancement MethodologyJMP Korea
 
데이터 분석 문제 해결을 위한 나의 JMP 활용법
데이터 분석 문제 해결을 위한 나의 JMP 활용법데이터 분석 문제 해결을 위한 나의 JMP 활용법
데이터 분석 문제 해결을 위한 나의 JMP 활용법JMP Korea
 
(독서광) 인간이 초대한 대형 참사 - 대형 참사가 일어날 때까지 사람들은 무엇을 하고 있었는가?
(독서광) 인간이 초대한 대형 참사 - 대형 참사가 일어날 때까지 사람들은 무엇을 하고 있었는가?(독서광) 인간이 초대한 대형 참사 - 대형 참사가 일어날 때까지 사람들은 무엇을 하고 있었는가?
(독서광) 인간이 초대한 대형 참사 - 대형 참사가 일어날 때까지 사람들은 무엇을 하고 있었는가?Jay Park
 
JMP 기능의 확장 및 내재화의 핵심 JMP-Python 소개
JMP 기능의 확장 및 내재화의 핵심 JMP-Python 소개JMP 기능의 확장 및 내재화의 핵심 JMP-Python 소개
JMP 기능의 확장 및 내재화의 핵심 JMP-Python 소개JMP Korea
 
JMP를 활용한 가속열화 분석 사례
JMP를 활용한 가속열화 분석 사례JMP를 활용한 가속열화 분석 사례
JMP를 활용한 가속열화 분석 사례JMP Korea
 
JMP가 걸어온 여정, 새로운 도약 JMP 18!
JMP가 걸어온 여정, 새로운 도약 JMP 18!JMP가 걸어온 여정, 새로운 도약 JMP 18!
JMP가 걸어온 여정, 새로운 도약 JMP 18!JMP Korea
 
실험 설계의 평가 방법: Custom Design을 중심으로 반응인자 최적화 및 Criteria 해석
실험 설계의 평가 방법: Custom Design을 중심으로 반응인자 최적화 및 Criteria 해석실험 설계의 평가 방법: Custom Design을 중심으로 반응인자 최적화 및 Criteria 해석
실험 설계의 평가 방법: Custom Design을 중심으로 반응인자 최적화 및 Criteria 해석JMP Korea
 

Recently uploaded (8)

공학 관점에서 바라본 JMP 머신러닝 최적화
공학 관점에서 바라본 JMP 머신러닝 최적화공학 관점에서 바라본 JMP 머신러닝 최적화
공학 관점에서 바라본 JMP 머신러닝 최적화
 
JMP를 활용한 전자/반도체 산업 Yield Enhancement Methodology
JMP를 활용한 전자/반도체 산업 Yield Enhancement MethodologyJMP를 활용한 전자/반도체 산업 Yield Enhancement Methodology
JMP를 활용한 전자/반도체 산업 Yield Enhancement Methodology
 
데이터 분석 문제 해결을 위한 나의 JMP 활용법
데이터 분석 문제 해결을 위한 나의 JMP 활용법데이터 분석 문제 해결을 위한 나의 JMP 활용법
데이터 분석 문제 해결을 위한 나의 JMP 활용법
 
(독서광) 인간이 초대한 대형 참사 - 대형 참사가 일어날 때까지 사람들은 무엇을 하고 있었는가?
(독서광) 인간이 초대한 대형 참사 - 대형 참사가 일어날 때까지 사람들은 무엇을 하고 있었는가?(독서광) 인간이 초대한 대형 참사 - 대형 참사가 일어날 때까지 사람들은 무엇을 하고 있었는가?
(독서광) 인간이 초대한 대형 참사 - 대형 참사가 일어날 때까지 사람들은 무엇을 하고 있었는가?
 
JMP 기능의 확장 및 내재화의 핵심 JMP-Python 소개
JMP 기능의 확장 및 내재화의 핵심 JMP-Python 소개JMP 기능의 확장 및 내재화의 핵심 JMP-Python 소개
JMP 기능의 확장 및 내재화의 핵심 JMP-Python 소개
 
JMP를 활용한 가속열화 분석 사례
JMP를 활용한 가속열화 분석 사례JMP를 활용한 가속열화 분석 사례
JMP를 활용한 가속열화 분석 사례
 
JMP가 걸어온 여정, 새로운 도약 JMP 18!
JMP가 걸어온 여정, 새로운 도약 JMP 18!JMP가 걸어온 여정, 새로운 도약 JMP 18!
JMP가 걸어온 여정, 새로운 도약 JMP 18!
 
실험 설계의 평가 방법: Custom Design을 중심으로 반응인자 최적화 및 Criteria 해석
실험 설계의 평가 방법: Custom Design을 중심으로 반응인자 최적화 및 Criteria 해석실험 설계의 평가 방법: Custom Design을 중심으로 반응인자 최적화 및 Criteria 해석
실험 설계의 평가 방법: Custom Design을 중심으로 반응인자 최적화 및 Criteria 해석
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Unity Scroll View에 관하여

  • 1. Stage 1-2. 버튼 누른 후 화면 배치 이제 본격적으로 게임을 만들어 봅시다.
  • 3. UI 중 Scroll View!  각각 버튼들을 누르면 UI들이 바뀌어야 한다.  그 중 가장 많이 사용되는 Scroll View에 대해 알아보자!
  • 4. Scroll View(1)  inspector View부터 살펴보자!  content : Scroll 내부에 넣어둘 내용물을 의미  horizontal, vertical : 가로 스크롤, 세로 스크롤 사용 유무  movement type : 부드럽게 움직일 것인가, Handle로만 움직일 것인가 등을 설정  intertia : 관성, 즉 스크롤을 했을 때 그 방향으로 더 미끄러지면서 이동하는 것  Scroll Sensitivity : 마우스 스크롤 했을 때 얼마나 많이 움직일 것인지 설정  Viewport : 스크롤 내부 보이는 화면을 의미(기본)  horizontal, vertical Scrollbar : 가로, 세로로 화면을 움직이게 하는 bar로 현재 스크 롤 위치를 보여주는 등의 역할을 한다.
  • 5. ScrollView(2)  우리는 세로 Scroll만 필요하기 때문에 Horizontal의 체크를 풀고, Horizontal Scrollbar를 삭제해줍니다.  Content 내부에 Scroll 내부에 넣어줄 버튼, 이미지, 텍스트 등을 배치할 수 있습니다.  앞서 해본 Layout을 활용하면 더욱 쉽고 빠르게 배치할 수 있습니다.  Content 내부에 Vertical Layout Group 과 Content Size Fitter를 추가해 봅시다.
  • 6. Vertical Layout Group(1)  Vertical Layout Group이 없을 경우에는 Content 내부에 일렬로 정렬을 할 수 있습니다.  없을 때와 있을 때 배치를 직접 해보면서 비교해보면 좋습니다.  다만, 버튼이 추가 되어도 Content의 크기는 계속 고정되어 있기 때문에 수 동으로 계속 Content의 크기를 바꿔줘야 하는 단점이 있습니다.  이를 극복하기 위하여 Content Size Fitter을 추가합니다.
  • 7. Content Size Fitter  Content Size Fitter는 용어 그대로 내용물에 따라 Content 의 크기를 자동으로 조절해줍니다.  Horizontal Fit 과 Vertical Fit 2가지가 있습니다.  Vertical Fit 을 Preferred Size로 바꾸면 세로 길이를 수동으로 조절할 수 없 지만, 내용물에 따라 자동으로 크기가 조정됨을 알 수 있습니다.  다만 또 문제가 한 가지 생깁니다.  Content 내부에 추가되는 크기를 수동으로 조절할 수 없다는 점입니다.  우측 이미지처럼, 버튼을 추가해도 매우 작게 추가되고 바꿀 수 없습니다.  따라서 각 버튼에 Layout Element를 추가합니다.
  • 8. Layout Element  Layout Element는 각 요소들을 하나씩 컨트롤 합니다.  Ignore Layout : 상위 Layout을 완전히 무시합니다.  다음과 같은 방법으로 크기가 할당됩니다.  Min 에 할당한 크기만큼 배치 됩니다. 그 후 Preferred 공간을 할당할 공간이 남아 있다면 Preferred 에 할당한 크기만큼 배치가 됩니다. 그 뒤에도 남은 공간이 있다면 Flexible에 할당한 크기 만큼 더 배치가 됩니다.  여기서 Flexible 은 (0.0001~ 1)의 크기를 가지며 그 이상의 값은 무의미합니 다.  우리는 Content Size Fitter를 이미 사용하였기 때문에 공간에 제약이 없습니 다. 따라서, Min이나 Preferred 둘 중 아무 곳에나 원하는 크기를 적으면 똑 같이 작동합니다.
  • 10. Stage 2-2 로 이동!  Stage 2-2 에서 layout 바꿔 끼는 법에 대해 배워보겠습니다.