unity-resources is not a single coherent project. It's a variety of code and non-code files which span many projects. I've designed these files to be widely useful in a variety of cases, regardless of whether Unity is being used to make a game at all.
The code in unity-resources isn't guaranteed to run in any given scenario, since there are inevitably drag-and-drop-type steps that need to be taken external to scripting. Most of this code likely serves best as an example to follow in your own implementations, as opposed to trying to use it all directly in this state.
In June 2020 I began attempting to learn Unity as a way to create data visualizations for scientific research. I have been focusing on a script-based approach instead of using the drag-and-drop functionalities wherever possible, and in doing so I've created some scripts which seem to hold general utility for future projects. A summary of what I've created so far is below:
rsg1 is my most widely scoped set of C# resources with a scripting-only focus. See the rsg1 README for more details.
The following people provided help in terms of things like sample code and answers to questions posted online:
- Kyle W Banks, for his blog post about detecting GameObject clicks in Unity using 2D raycasting
- Ilya Suzdalnitski, for his StackOverflow answer about setting the isReadable property of a Texture2D object through script
- GitHub user PurpleBooth for the template that I used in creating this README
I'm also thankful to the following specific resources which were referenced during development:
- Unity Learn, especially the following tutorial series:
- "Unity C# Survival Guide" by Jonathan Weinberger
- The Unify Wiki, especially the following articles: