Skip to content
Static helper utilities for Unity. Includes Rect, Math, Color, and more.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ThirdParty
UnityUtilities
.gitignore
LICENSE
LICENSE.meta
README.md
README.md.meta
ThirdParty.meta
UnityUtilities.meta

README.md

*Unity Utilities is now deprecated in an effort to narrow my focus on visual oriented tools. This will remain on here forever, to freely use as a starting point. Thank you for downloading. *

UnityUtilities

Static helper utilities for Unity. Includes Rect, Math, Color, and more.

Rect (RectUtilities)

SplitToRow - Returns a Rect sliced along X axis.
SplitToColumn - Returns a Rect sliced along the Y axis.
SplitToRectIndex - Returns a Rect at a specific index position, after being sliced along the X and Y axis nth amount of times.

Math (MathUtilities)

Remap (Int and Float) - Converts a value in a range to its equivalent in another range.

Texture (TextureUtilities)

SinglePixelTexture - Returns a new Texture2D of a single colored texture.
TintedTexture - Using a copy of a texture, returns it tinted with a color.

Color (ColorUtilities)

GetColorBetween - Gets the average between two colors.
GetColorsBetween - Returns a single color along a gradient.

Event (EventUtilities)

isDoubleClickedInEditor - Determines if we have double clicked in the Unity Editor.
isDoubleClicked - Determines if we have double clicked during runtime.

String (StringUtilities)

AddLowerUpperNeighboringSpaces - Adds white spaces anywhere lowercase neighbors to the left of an uppercase letter. (Ex. "HeyThere!" becomes "Hey There!")

EDITOR

UtilityGUI - Partial class for utilities.

BorderRect - Draws a rect with a border. Draw Inside, Outside, or Centered.
ImageButton - Draws a button using an image. Contains states for Active, Inactive, Pressed, and Hover.
BorderedRectButton - Draws a rect with a border that can be selected. Contains colored states for Active, Inactive, Pressed, and Hover.

UtilityGUILayout - Partial class for utilities.

ImageButton - Draws a button using an image. Contains states for Active, Inactive, Pressed, and Hover.
BorderedRectButton - Draws a rect with a border that can be selected using automatic layout. Contains colored states for Active, Inactive, Pressed, and Hover. (Pressed color with layout isn't working currently. Working on a fix soon.)
StaticSelectionList -
Creates a list of StaticSelection as BorderedRectButtons. One click returns the object of TType from static selection and the selection remains active. Double clicking sets StaticSelection.isOpening to true.
StaticSelection - A menu item for StaticSelectionLists.
SelectionStyleContent - A Selection GUIContent and GUIStyle mixed, intended for most GUI and GUILayout list types that are in this branch.

You can’t perform that action at this time.