이런걸 만들고 있습니다.

'게임 개발 > Unity' 카테고리의 다른 글

기록 #2  (0) 2020.05.09
Rect Transform 잠깐 메모  (0) 2020.02.09
분명 자주 쓰는데 자주 까먹는 기능들  (0) 2019.12.27

https://www.reddit.com/r/Unity3D/comments/gctq1q/i_made_a_tool_that_bakes_unity_physics_into/?utm_source=share&utm_medium=web2x

 

I made a tool that bakes Unity physics into texture and replays it on GPU with virtually zero cost.

Posted in r/Unity3D by u/Tomek_SC • 3,327 points and 134 comments

www.reddit.com

 

www.reddit.com/r/Unity3D/comments/gbwya1/i_worked_a_lot_on_this_while_in_quarantine_and_in/?utm_source=share&utm_medium=web2x

 

'게임 개발 > Unity' 카테고리의 다른 글

짧은 근황  (0) 2021.06.13
Rect Transform 잠깐 메모  (0) 2020.02.09
분명 자주 쓰는데 자주 까먹는 기능들  (0) 2019.12.27

참고 블로그 : https://wergia.tistory.com/184

 

[Unity3D] UI 비법서 (4) - UI 개발자라면 제발 Rect Transform 애용합시다!

UI 비법서 (4) - UI 개발자라면 제발 Rect Transform 애용합시다! 작성 기준 버전 :: 2019.1.4f1 유니티 개발을 처음으로 공부하는 개발자들은 기본적으로 게임 오브젝트의 위치를 이동시키는 코드를 작성하려고..

wergia.tistory.com

 

 

UI 컴포넌트 간 위치 지정시 일반 Transform 좌표가 아닌 Rect Transform 좌표를 사용할것.

 

Rect의 기준점으로 사용될수 있는건 4가지 데이터가 있는데, Up, left, right, bottom 4가지.

 

Up / bottom은 y축 값, left, right는 x축 값이며,

 

up, right 는 offsetMax, bottom, left는 offsetMin값이다

 

즉, rect transform의 bottom이 필요한 경우

 

var rect = (rect 정보를 가져올 오브젝트).GetCompo.GetComponent();

foo(rect.offsetMin.y);

var rect = (rect 정보를 가져올 오브젝트).GetCompo.GetComponent();
foo(rect.offsetMin.y);

 

식으로 획득이 가능하다.

'게임 개발 > Unity' 카테고리의 다른 글

짧은 근황  (0) 2021.06.13
기록 #2  (0) 2020.05.09
분명 자주 쓰는데 자주 까먹는 기능들  (0) 2019.12.27

1. Private 변수에 [SerializeField] 지정

:: 직렬화 수행 

  보통 자주 쓰는 목적으로는 모니터링이 필요한 Private 변수 사용시 Inspector 창에서 값을 확인하는 목적

https://docs.unity3d.com/kr/530/ScriptReference/SerializeField.html

 

2. [Range(A,B)]

:: A~B 사이의 값만 지정할 수 있도록 변수 값 범위를 Fix

적용전

 

적용후

3. Debug.log();

:: 가장 기본적인 Unity 콘솔 출력방식. 이름에서 나와있다시피 '디버그' 용으로 쓰는것이 기본.

이거로 실제 게임 화면에 뭘 띄우겠단 생각 금지.

 

 

 

 

 

 

 

 

--------

19.12.27 : 기본 업데이트

'게임 개발 > Unity' 카테고리의 다른 글

짧은 근황  (0) 2021.06.13
기록 #2  (0) 2020.05.09
Rect Transform 잠깐 메모  (0) 2020.02.09

+ Recent posts