- 最后登录
- 2021-7-6
- 注册时间
- 2012-12-27
- 阅读权限
- 90
- 积分
- 76145
 
- 纳金币
- 53488
- 精华
- 316
|
可以为不同平台下的Unity工程共用同一个Asset文件,这样只是为不同平台缓存了Library文件。
使用symbolic link 就可以达到这个效果。它的功能类似于快捷方式,但是系统不把它当作快捷方式。
一·Windows平台
有两种方式可以设置link。
1·使用软件link shell extension http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html#customoverlayicons
2·使用下面的控制台命令
mklink /D D:\Unityproject\MusicApp_softlink D:\Unityproject\MusicApp
- /D – creates a soft symbolic link, which is similar to a standard folder or file shortcut in Windows. This is the default option, and mklink will use it if you do not enter a prefix.
- /H – creates a hard link to a file
- /J – creates a hard link to a directory or folder
二 · MAC平台下: 1.控制台命令
https://developer.apple.com/search/?q=ln(1) 点击 ln(1) Mac OS X Manual Page ln [-Ffhinsv] source_file [target_file] ln [-Ffhinsv] source_file ... target_dir link source_file target_fileln -s source source_dir target_dir2.使用软件 http://www.makeuseof.com/tag/automator-create-symbolic-links-dropbox-mac/
|
|