Skip to content

Instantly share code, notes, and snippets.

@ApprenticeGC
Created July 7, 2017 01:39
Show Gist options
  • Select an option

  • Save ApprenticeGC/9a12297155c90c577731fd66ab8e7838 to your computer and use it in GitHub Desktop.

Select an option

Save ApprenticeGC/9a12297155c90c577731fd66ab8e7838 to your computer and use it in GitHub Desktop.
Speed up development in Unity using some tricks.
# unlink first
if [ -L "$(pwd)/Assets/Plugins/UniRx.dll" ] ; then
unlink "$(pwd)/Assets/Plugins/UniRx.dll"
fi
if [ -L "$(pwd)/Assets/Plugins/Zenject" ] ; then
unlink "$(pwd)/Assets/Plugins/Zenject"
fi
if [ -L "$(pwd)/Assets/Plugins/Zenject.meta" ] ; then
unlink "$(pwd)/Assets/Plugins/Zenject.meta"
fi
if [ -e "$(pwd)/in-references/UniRx.dll" ] ; then
ln -s "$(pwd)/in-references/UniRx.dll" "$(pwd)/Assets/Plugins"
fi
# link if actual file/folder exsit
if [ -e "$(pwd)/in-references/Zenject" ] ; then
ln -s "$(pwd)/in-references/Zenject" "$(pwd)/Assets/Plugins"
fi
if [ -e "$(pwd)/in-references/Zenject.meta" ] ; then
ln -s "$(pwd)/in-references/Zenject.meta" "$(pwd)/Assets/Plugins"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment