[Unity] .unitypackage 연결이 끊어진 경우

jwonp·2023년 10월 5일

Unity

목록 보기
1/2
post-thumbnail

상황

Unity Editor 파일을 C에서 E로 옮기고 나니 unity package를 받아올 때 자동으로 연결이 되지 않는 문제가 발생했다.

문제

.unitypackage는 다른 응용프로그램들을 단순 실행시키는 확장자와는 달리 유니티 에디터를 실행하기만 하는 확장자가 아니라 단순 연결로는 해결이 되지 않는다.

해결

Cmd를 관리자 권한으로 실행해 아래의 코드를 입력해주면 된다.

ftype unitypackage="E:\Unity\Unity\2022.3.2f1\Editor\Unity.exe" -openfile "%1" 
assoc .unitypackage=unitypackage

ftype과 assoc를 통해 unity editor의 확장자를 가져와서 연결시켜줄 수 있다.

연결 후

연결이 된 것을 확인할 수 있다. 해결!

Reference

https://docs.microsoft.com/ko-kr/windows-server/administration/windows-commands/ftype
https://learn.microsoft.com/ko-kr/windows-server/administration/windows-commands/assoc
https://velog.io/@astray36/%EC%98%A4-%EA%B0%9C-URP%EC%9D%98-%EA%B0%9C%EB%85%90

profile
Unity, C# 공부중

0개의 댓글