본문 바로가기
개발/Unity

Unity) Layout Group(Auto Layout) 을 사용할때 비활성화로 값 변경이 안될때 변경하는 방법들

by 테샤르 2024. 1. 12.

Layout Group(Auto Layout) 을 사용할때 비활성화로 값 변경이 안될때 변경하는 방법들

 

다음과 같이 Layout Group 을 사용하는 과정에서 비활성화되어서 값을 변경하지 못하는 경우가 있다.

해당 케이스는 대체적으로 상위 객체의 영향을 받는 경우이다.

 

< Layout Gropup 종류 >

반응형

 

< 해결방법  - 1 >

이런 경우에는 상위 Component를 비활성화 하고 수정하고 다시 활성화하는 방법으로 해결이 가능하다.

< 해결방법 -2 >

Layout Element Component를 추가해서 해당 값을 변경하고 재정의한다.

 

 

 

 Unity 자동 레이아웃 (Auto Layout) : [링크]

 

자동 레이아웃 - Unity 매뉴얼

자동 레이아웃(Auto Layout) 시스템은 수평 그룹, 수직 그룹, 격자 무늬와 같은 중첩 레이아웃 그룹에 요소를 배치하는 방법을 제공합니다. 또한 요소의 크기가 포함하고 있는 콘텐츠에 맞게 자동으

docs.unity3d.com

 

Unity Layout Element : [링크]

 

Layout Element | Unity UI | 1.0.0

Layout Element If you want to override the minimum, preferred, or flexible size of a layout element, you can do that by adding a Layout Element component to the GameObject. A layout controller allocates width or height to a layout element in the following

docs.unity3d.com

 

Unity Support - Hoow to overwrite Width and Height values That are driven by a Layout Group in runtime : [링크]

 

★☆☆☆☆

 

반응형

댓글