Loic.nickgravelyn.UnityToolbag 1.0.0

dotnet add package Loic.nickgravelyn.UnityToolbag --version 1.0.0
                    
NuGet\Install-Package Loic.nickgravelyn.UnityToolbag -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Loic.nickgravelyn.UnityToolbag" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Loic.nickgravelyn.UnityToolbag" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Loic.nickgravelyn.UnityToolbag" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Loic.nickgravelyn.UnityToolbag --version 1.0.0
                    
#r "nuget: Loic.nickgravelyn.UnityToolbag, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Loic.nickgravelyn.UnityToolbag@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Loic.nickgravelyn.UnityToolbag&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Loic.nickgravelyn.UnityToolbag&version=1.0.0
                    
Install as a Cake Tool

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 Unity 2019.4 LTS 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.
  • ConditionallyVisiblePropertyDrawer - A simple way to conditionally show/hide serialized properties on your objects.
  • 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:

  • Open Character Controller - Framework for building first and third person character controllers in Unity.
  • 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. 😃

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net5.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 0 7/31/2021