Unity/에셋스토어 추천 맨텀 2022. 11. 19. 14:33
#. 유니티 에셋스토어 링크 bakery Bakery - GPU Lightmapper | 레벨 디자인 | Unity Asset Store Get the Bakery - GPU Lightmapper package from Mr F and speed up your game development process. Find this & other 레벨 디자인 options on the Unity Asset Store. assetstore.unity.com #. 어떤 에셋인가요? 3D 프로젝트를 할 때 라이트 매핑은 시간을 많이 소요하게 되는 작업 중 하나다. 과거 비스트 라이트 매퍼 시절에는 간단한 배경을 라이트맵 베이킹하는데 몇 시간 단위로 걸렸고, 최근에는 GPU 라이트맵핑이 도입되었지만 이것도 아직 꽤 시간..
Unity/유니티 엔진 동작 관련 맨텀 2022. 10. 24. 01:45
https://forum.unity.com/threads/detect-most-recent-input-device-type.753206/#post-5360982 Detect most recent input device/type? I'm trying to integrate/switchto the new input system and I'm stuck at the following issue. My game supports gamepad, as well as mouse and keyboard... forum.unity.com using UnityEngine; using UnityEngine.UI; using UnityEngine.InputSystem; using UnityEngine.InputSystem.U..
Unity/유니티 엔진 동작 관련 맨텀 2022. 10. 2. 21:18
유니티 공식 영상 참고 : https://www.youtube.com/watch?v=5tOOstXaIKE 혹은 : 문서 참고 : https://docs.unity3d.com/Packages/com.unity.inputsystem@1.0/manual/HowDoI.html 이제 New InputSystem이 나온지도 꽤 됐지만 매번 모바일 게임만 작업하다 보니 쓸 일이 없어서 미뤄두고 있다가 한 번 테스트 겸 써봄. #. 패키지 준비하기 패키지 임포트 new InputSystem은 패키지 매니저에서 별도로 임포트 해줘야 함. 임포트 할 때 경고창이 나오는데 그냥 Yes 눌러주면 됨. 플레이어 세팅 PlayerSetting에서 어떤 인풋 시스템을 사용할 것인지 선택할 수 있는데, Legacy, New, Bot..
Unity/유니티 프로그래밍 맨텀 2022. 9. 23. 15:06
베지어 같은 복잡한게 필요한게 아니라 간단하게 부드럽게만 이어지면 되는 커브가 필요해짐. 레딧 : Make a Curved Line using Unity3d Line renderer https://www.reddit.com/user/Sanketpanda/comments/f475vn/make_a_curved_line_using_unity3d_line_renderer/?utm_source=share&utm_medium=web2x 레퍼런스를 토대로 2포인트로도 작동하게 추가 작성함 당연히 테스트 코드라서 Update문쓰고 RemoveAt 쓰고 한거는 삭제해야됨. public class LineTest : MonoBehaviour { public LineRenderer linerenderer; public Tr..
Unity/버그 및 오류 해결 맨텀 2022. 9. 14. 14:58
#. 오류 string[] splits = str.split['|']; (T)Activator.CreateInstance(Typeof(subT), splits); 같은 형태로 형태로 코드 작성 중 SubT 클래스에는 public SubT(string[] strArray) 형태로 생성자가 존재하는데도 생성자가 존재하지 않다는 오류 메시지가 발생했다. #. 해결 방법 Activator.CreateInstance 사용시 string[] 만을 인자로 받는 생성자는 사용 불가능. 내부적으로는 Main(str[] args) 같은 형태로 구현되어 있다고 함. 생성자가 충돌나는 듯. object[] 로 바꾸거나 쓰레기값으로 (bool temp, string[] strArray) 같이 형태를 바꿔줘야함.
Unity/버그 및 오류 해결 맨텀 2022. 9. 1. 19:01
#. 버그 현상 잘 작업하다가 갑자기 시네머신 카메라가 동작 안 하는 현상 발생. Virtual Camera는 잘 움직이는데 MainCamera가 Virtual Camera에 따라붙지 않는다. 따로 Brain에 Set하는 기능이 있다 찾아보기도 했다.. # . 해결방안 Virtual Camera의 Layer 확인할 것. 여러 씬을 Additive로 열어서, 해당 씬에 있는 오브젝트만을 그리고 싶어서 LayerMask처리를 했었는데 MainCamera의 Culling 설정해놓은 Layer에 Virtual Camera가 포함되지 않으면 자동으로 Live 되지 않는다!