Search Unity

Free & Open Source Unity Toolkit

Discussion in 'General Discussion' started by roberthkasper, Nov 28, 2022.

  1. roberthkasper

    roberthkasper

    Joined:
    May 17, 2022
    Posts:
    4
    Hi folks! In the last couple weeks I've put together a free & open source toolkit for Unity Developers to easily solve common problems and skip the boilerplate code needed for some simple operations in Unity. I recently published the first version here:
    https://github.com/RHKasper/RKUnityToolkit

    This toolkit includes a bunch of different tools, but here are some of my favorites:
    • Easing Functions - Unity implementations of all the functions described on easings.net. These are very useful for writing code-based animations and creating polished non-linear behaviors.
    • Vector Extensions - A lot of common vector operations like taking the absolute value, clamping, and adjusting components are tedious and verbose in Unity. These extensions simplify each of those operations into a single statement that’s easy to read.
    • Gizmo Drawing Tools - A collection of tools for drawing points and bounding boxes in Unity’s gizmos, making it easier to debug 3D math.
    Feel free to check it out -- I'd be happy to receive feedback on things to add as well as ways to make it more user-friendly.
     
    DragonCoder likes this.
  2. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,569
    Just one question. Why did you release it as a unity project?

    That will make it harder to incorporate it into existing projects. If it is a library, ideally the user should be able to git clone (or git submodule) it into subdirectory of Assets. You have project settings at the top, so it is a project.
     
  3. roberthkasper

    roberthkasper

    Joined:
    May 17, 2022
    Posts:
    4
    I published the project so that people can collaborate on it if they wish. My intent is for devs to download the .unitypackage file associated with each release and add that to their projects.

    https://github.com/RHKasper/RKUnityToolkit/releases
     
  4. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,569
    IMO, that's very inconvenient.

    Normally I'd want a library to use either git, or package manager through git. And not unitypackages.
     
    roberthkasper likes this.
  5. I recommend to change it to package format. You can simultaneously easily develop your package (put it into the Packages folder as local package) and users can include into their projects through the package manager. If you need quick and dirty examples, my packages are those: https://github.com/LurkingNinja
    Just don't be lazy like me and include proper unit tests in your packages (I'm lazy to break up my tests to include into these so far).
     
    roberthkasper and neginfinity like this.
  6. roberthkasper

    roberthkasper

    Joined:
    May 17, 2022
    Posts:
    4
    Will do. Thanks for the example, I appreciate it!

    Edit: I've republished as a Unity Package!

    https://github.com/RHKasper/com.rhkasper.rk-unity-toolkit
    https://openupm.com/packages/com.rhkasper.rk-unity-toolkit/
     
    Last edited: Nov 30, 2022