查看: 2503|回复: 0
打印 上一主题 下一主题

[其他] Unity 快速切换平台的方法

[复制链接]

9903

主题

126

听众

7万

积分

首席设计师

Rank: 8Rank: 8

纳金币
53488
精华
316

最佳新人 热心会员 灌水之王 活跃会员 突出贡献 荣誉管理 论坛元老

跳转到指定楼层
楼主
发表于 2015-8-30 00:20:34 |只看该作者 |倒序浏览

可以为不同平台下的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
164557gr0k6sh8y61rc76m.png
  • /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/


分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

手机版|纳金网 ( 闽ICP备2021016425号-2/3

GMT+8, 2025-8-13 02:25 , Processed in 0.061826 second(s), 31 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部