Retrieve Texture2D from webcam input

I have a project whereby I want to manipulate the webcam input as a Texture2D object.
Before I waste any time, can any graphics gurus tell me if this is possible using C# Webcam and Texture2D classes in unity?

It’s possible, there is a class which is already integrated in Unity

Even if it does not work, it’s possible to create a native plugin and write to a texture directly while reading the video.

There may exist better way but I do not know them.