scale plane to fit to screen size

Hello everyone,

I have an orthographic camera of size 100, and I have a plane that I want to fit/scale according to the screen size.
To be more clear, I want the functionality of a guiTexture on a plane/mesh.

In the case of a guitexture, I would have set transform.postion = vector3(0,0,0) and play with the values of pixelInset like:

myGuiTexture.pixelInset = new Rect(0,0,Screen.currentResolution.width,Screen.currentResolution.height);

So how to achieve something like this with transform.position or any other method to do this with 3D object.
I want this since I am using tk2d and I want my sprite animation to fill the whole screen.

Thanks,

Since you are using an orthographic camera, from the reference:

[OrthographicSize] is half of the vertical size of the viewing volume. Horizontal viewing size varies depending on viewport’s aspect ratio.

So you will set the vertical size of your plane to twice the orthographic size and then scale the horizontal based on the ratio of Screen.width / Screen.height.