By default, installing Unity Editors is a process that requires administrator privileges.
2023.1부터는 Windows의 일반 사용자가 권한을 높이지 않고도 Unity 에디터를 설치하도록 활성화할 수 있습니다.
이 기능을 활성화하면 관리자가 Unity 설치 프로그램이 감지하는 누락된 종속성을 설치해야 할 필요성을 줄여 줍니다(예: Visual C++ 런타임 라이브러리). 이러한 종속성은 변경되는 빈도가 높지 않으므로, 일반 사용자가 다른 Unity 에디터 인스턴스를 설치할 때마다 관리자가 개입할 필요가 없습니다.
C:\ProgramData\Unity\config
폴더에 대한 쓰기 권한이 있어야 합니다.
JSON 파일을 편집할 때 다음을 따르십시오.
Get-Content
및 ConvertFrom-Json
cmdlet을 PowerShell에서 사용할 수 있습니다.일반 사용자가 Unity 에디터를 설치하도록 하려면 다음을 따릅니다.
다음 경로가 존재해야 합니다. 필요한 경우 폴더를 생성하십시오.
C:\ProgramData\Unity\config
다음 파일이 존재해야 합니다. 필요한 경우 파일을 생성하십시오.
C:\ProgramData\Unity\config\services-config.json
파일을 생성해야 하는 경우 최소한 다음 콘텐츠를 포함하도록 합니다.
{
}
services-config.json
의 중괄호 사이에 다음 항목을 추가합니다.
"hubDisableElevate": true
선택 사항: 같은 컴퓨터의 여러 사용자가 동일한 버전을 여러 번 설치하지 않고도 Unity 에디터 바이너리 파일을 공유할 수 있게 하려면 C:\UnityEditors
와 같이 모든 Unity 에디터의 공통 대상이 될 폴더를 생성합니다. 중요: 모든 사용자에 대해 읽기 및 쓰기 권한을 부여해야 합니다.
선택 사항: 이전 단계에서 공통 폴더를 생성한 경우 machineWideSecondaryInstallLocation
키를 services-config.json
에 추가하여 Unity Hub가 이 폴더를 사용하게 합니다. 이전 단계부터 이 폴더를 사용하면 항목이 다음과 같이 표시됩니다.
"machineWideSecondaryInstallLocation": "C:\\UnityEditors"
Unity Hub를 종료하고, 작업 표시줄에 최소화된 것이 아니라 중단된 것이 맞는지 확인합니다.
위 절차에서 얻은 값을 사용하면 샘플 services-config.json
파일이 다음과 같이 표시됩니다.
{
"hubDisableElevate": true,
"machineWideSecondaryInstallLocation": "C:\\UnityEditors"
}
이제 일반 사용자의 컴퓨터는 종속성이 없는 한 관리자의 개입 없이도 Unity 에디터를 설치할 수 있습니다. 관리자는 모든 종속성을 설치해야 합니다.
다음은 일반 사용자가 볼 수 있는 종속성 경고 예시입니다.
일반 사용자가 종속성 누락에 대한 경고를 받으면 설치 프로그램은 종속성 목록을 텍스트 파일에 기록합니다. 경고는 이 텍스트 파일의 위치를 식별합니다. 관리자가 이러한 종속성을 설치해야 일반 사용자가 Unity를 안정적으로 사용할 수 있습니다.
다음은 Unity 설치 프로그램이 생성할 수 있는 누락된 종속성 목록의 예시입니다.
Dependency: Visual C++ 2010 runtime (x64)
Download location: https://www.microsoft.com/en-ca/download/details.aspx?id=26999
Local Installer: C:\Users\nonadmin\AppData\Local\Unity 2023.1.0a5\MissingDependencies\vcredist_x64_2010.exe
Dependency: Visual C++ 2013 runtime (x64)
Download location: https://www.microsoft.com/en-ca/download/details.aspx?id=40784
Local Installer: C:\Users\nonadmin\AppData\Local\Unity 2023.1.0a5\MissingDependencies\vcredist_x64_2013.exe
Dependency: Visual C++ 2015 runtime (x64)
Download location: https://www.microsoft.com/en-ca/download/details.aspx?id=48145
Local Installer: C:\Users\nonadmin\AppData\Local\Unity 2023.1.0a5\MissingDependencies\vcredist_x64_2015.exe
Make sure that the following rules are set:
netsh advfirewall firewall delete rule name=all program='C:\Users\nonadmin\AppData\Local\Unity 2023.1.0a5\Editor\Unity.exe'
netsh advfirewall firewall delete rule name=all program='C:\Users\nonadmin\AppData\Local\Unity 2023.1.0a5\Editor\Data\Tools\nodejs\node.exe'
netsh advfirewall firewall add rule name='Unity 2023.1.0a5 Editor' dir=in action=allow program='C:\Users\nonadmin\AppData\Local\Unity 2023.1.0a5\Editor\Unity.exe' profile=domain protocol=any
netsh advfirewall firewall add rule name='Unity 2023.1.0a5 Editor' dir=in action=block program='C:\Users\nonadmin\AppData\Local\Unity 2023.1.0a5\Editor\Unity.exe' profile=public protocol=any
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.