This repository has been archived by the owner. It is now read-only.
Variety of Unity scripts and tools.
Switch branches/tags
Nothing to show
Clone or download
2
Latest commit d72bd81 Jan 9, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CacheBehaviour Removing all headers from feature readmes because I think it's less c… Nov 8, 2016
Dispatcher Removing all headers from feature readmes because I think it's less c… Nov 8, 2016
DrawTitleSafeArea Removing all headers from feature readmes because I think it's less c… Nov 8, 2016
Future Attempting to use gitattributes to ensure consistent line endings. Nov 10, 2016
SimpleSpriteAnimation Removing all headers from feature readmes because I think it's less c… Nov 8, 2016
SnapToSurface Removing all headers from feature readmes because I think it's less c… Nov 8, 2016
SortingLayer Removing all headers from feature readmes because I think it's less c… Nov 8, 2016
StandardPaths Removing all headers from feature readmes because I think it's less c… Nov 8, 2016
SyncSolution Removing all headers from feature readmes because I think it's less c… Nov 8, 2016
UnityConstants Removing all headers from feature readmes because I think it's less c… Nov 8, 2016
.gitattributes Attempting to use gitattributes to ensure consistent line endings. Nov 10, 2016
.gitignore Trying out including meta files to see if it allows projects to use U… Dec 11, 2013
CONTRIBUTING.md better contributing guide, plus meta file Jul 3, 2016
CONTRIBUTING.md.meta better contributing guide, plus meta file Jul 3, 2016
CacheBehaviour.meta Adding a CacheBehaviour base class that provides caching of all the s… May 11, 2014
Dispatcher.meta Adding the Dispatcher system to help with multithreading in Unity, by… Apr 18, 2014
DrawTitleSafeArea.meta Adding title safe area drawing component. Apr 17, 2014
Future.meta Adding a futures library to enable asynchronous operations that retur… Apr 18, 2014
LICENSE New year Jan 9, 2017
LICENSE.meta Trying out including meta files to see if it allows projects to use U… Dec 11, 2013
README.md Removing DuplicateWithOriginalName because it breaks down in weird ways Nov 10, 2016
README.md.meta Trying out including meta files to see if it allows projects to use U… Dec 11, 2013
SimpleSpriteAnimation.meta Did a bunch of cleanup. Removed spaces from directory names, reformat… Apr 18, 2014
SnapToSurface.meta Did a bunch of cleanup. Removed spaces from directory names, reformat… Apr 18, 2014
SortingLayer.meta Did a bunch of cleanup. Removed spaces from directory names, reformat… Apr 18, 2014
StandardPaths.meta Adding StandardPaths, a home for standard system paths on desktop pla… Nov 29, 2015
SyncSolution.meta Adding SyncSolution menu item script. Aug 30, 2016
UnityConstants.meta Adding a missing meta file. Apr 17, 2014

README.md

UnityToolbag

This repo is a host for any little Unity scripts I write that are simple and easy for others to leverage. Each folder has its own README to explain the usage in more depth than here. All scripts are being written with the latest Unity 5 and may or may not work in earlier versions.

Features

  • CacheBehaviour - A drop-in replacement for MonoBehaviour as a script base class that provides caching of all standard properties.
  • Dispatcher - Provides a mechanism for invoking code on the main thread from background threads.
  • DrawTitleSafeArea - Simple component you add to a camera to render the title safe area.
  • Future - Simple implementation of the future programming concept.
  • SimpleSpriteAnimation - A very basic system for a simpler frame based animation for Unity's 2D system.
  • SnapToSurface - Editor tools to assist in positioning objects.
  • SortingLayer - Tools for working with Unity's new sorting layers.
  • StandardPaths - A static class that exposes good locations for saving files.
  • Sync Solution - Editor menu item to synchronize projects without opening them.
  • UnityConstants - Tool for generating a C# script containing the names and values for tags, layers, sorting layers, and scenes.

Usage

Simply clone the repository into the 'Assets' folder of a Unity project and you're good to go. If you're already using Git, you can use a submodule to check out into Assets without the Toolbag getting added to your repository.

Alternatively you can just cherry pick the features you want and copy only those folders into your project. Be careful, though, as some of the features may depend on others. See the individual feature README files to find out.

Other Unity Repos

Here are some other repos that contain Unity goodies:

  • UnityTiled - This is my system for importing Tiled maps into Unity.
  • Awesome-Unity - This is a neat repo that just lists a bunch of other Unity repos. Check there for great stuff.

Contributing

Please read the the guide for contributing before making any pull requests, please!

Shameless Plug

If you find any code in here to be useful and feel so inclined, you can help me out by purchasing a game from my company, Brushfire Games. Absolutely not required (this code is free) but definitely appreciated. :)