The UMFUnity class holds useful functions that directly interact with the Unity Engine.
UMFUnity
ColorToTexture2D