https://docs.microsoft.com/en-us/windows/win32/api/directxmath/ns-directxmath-xmmatrix

 

XMMATRIX (directxmath.h) - Win32 apps

Describes a 4*4 matrix aligned on a 16-byte boundary that maps to four hardware vector registers.

docs.microsoft.com

 

빙글빙글 

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

당연하게도 세팅을 위해서 라이브러리 추가를 해줘야 한다고 생각해서,

VS 프로젝트를 생성한 이후 추가메뉴를 찾다가 까먹어버린바람에...

'근데 얘들 기본 SDK로 들어왔으니까 있지 않을까?' 하고 바로 include를 시도해봤는데...

 

 

 

아니 이게 왜 다 있어?

 

DX10부터 12까지 다 있네요?

 

음...

 

아니 이러면 진짜 설치할 필요가 없었던거 아니었나? 

다이렉트 X 11의 경우 :

 

https://www.microsoft.com/en-us/download/details.aspx?id=6812

 

DirectX SDK - (June 2010)

Download the complete DirectX SDK, which contains the DirectX Runtime and all DirectX software required to create DirectX compliant applications.

www.microsoft.com

 

MS 공식홈페이지에서 DX11 sdk를 설치한다. (왜 2010년이 마지막인지는...)

 

그리고 Windows 10 SDK를 설치해줘야하는데...

 

 

Visual Studio 2017 이후 버전을 사용하시는 사용자들의 경우, 설치 옵션에서
'C++를 이용한 게임 개발' 을 활성화 하셨다면, 자동으로 Windows 10 SDK 까지 설치가 되어있을겁니다.

 

 

이 경우에는 추가적인 설치를 하실 필요는 없습니다만, SDK 가 설치되지 않았을 가능성이 있으니 해당 항목을 확인해줍니다.

 

 

 

 

 

 

 

 

 

 

 

 

 

...라고 기껏 써놨는데 검색해보니 Direct X 11.x 이후부터는 전부 Windows 10 SDK에 포함이라네요.

생각해보니 굳이 구버전 Direct X를 쓸 필요가 있긴 했나 싶긴 했습니다...

 

어쩐지 에러뜨더라...

 

역시 모르면 당해봐야 제맛

에러 해결법도 '최신 버전을 삭제하고 설치후 최신버전 재설치하세요' 라고 하니, 심각한 문제가 발생하기 전까지는 Windows 10 SDK에 탑재된 버전을 이용하는것으로 하겠습니다.

 

최신 버전 설치 및 사용 안내는 다음 링크를 참고바랍니다 :

https://docs.microsoft.com/ko-kr/windows/win32/direct3d12/directx-12-programming-environment-set-up

 

Direct3D 12 프로그래밍 환경 설정 - Win32 apps

생산성 높은 Direct3D 12 개발 환경을 구성하는 설치, 도구 및 지원되는 라이브러리를 설명합니다.

docs.microsoft.com

 

P.S : DX11.x

https://docs.microsoft.com/en-us/windows/win32/api/_direct3d11/

 

Direct3D 11 Graphics - Win32 apps

Direct3D 11 Graphics 01/11/2019 48 minutes to read In this article --> Overview of the Direct3D 11 Graphics technology. To develop Direct3D 11 Graphics, you need these headers: For programming guidance for this technology, see: Enumerations Functions Title

docs.microsoft.com

 

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