Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to open the same project directory with Unity

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how Unity opens the same project directory. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Unity opens the same project directory

When debugging a project project with Unity, it is sometimes necessary to open the same directory using Unity. However, Unity does not support opening the same project because the path is the same. That means we have to create a new directory and then re-use svn or git to pull the project. If there are a lot of project files, the process takes a long time.

Mklink

Since Unity doesn't support it, we need to start with the Windows system to see if we can create a new directory, but that directory is a shortcut that you can link to. There happens to be a mklink method in the bat command on the Windows system, so the problem is solved.

How?

Create a new DirLink.bat with the following code

:: Create Dir link

Set LINK_DIR=..\ HelloWorldClone

Rmdir LINK_DIR%

Mkdir LINK_DIR%

Rmdir% LINK_DIR%\ Assets

Rmdir% LINK_DIR%\ ProjectSettings

Rmdir% LINK_DIR%\ Library

Mklink / J% LINK_DIR%\ Assets Assets

Mklink / J% LINK_DIR%\ ProjectSettings ProjectSettings

Mklink / J% LINK_DIR%\ Library Library

We put the bat file in the same level directory of Assets

Double-click "DirLink.bat" to generate a HelloWorldClone folder outside the HelloWorld project

This directory is the directory linked to the HelloWorld project

Using Unity to open both directories is the same project.

Thank you for reading! This is the end of the article on "how to open the same project directory with Unity". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report