is Plane a component?

Hi,
There’s probably a simple answer to this … I’ve created a prefab with a Plane(Mesh Fliter). All I’m trying to do is alter the plane’s normal and position using Plane.SetNormalAndPosition() but (in C#) I haven’t been able to get the plane itself. Using GetComponent() I get a ‘convert type’ error: UnityEngine.Component to UnityEngine.Plane

Plane myPlane = (Plane)pfbPlane.GetComponent(typeof(Plane));

or

Plane myPlane = (Plane)pfbPlane.GetComponent("Plane");

Grateful for any help, cheers.

Plane is the model.

The Component you want is called a MeshFilter, so

MeshFilter plane = GetComponent(typeof(MeshFilter))as MeshFilter;

This is the corresponding functions, you would likely want to access the MeshFilter.Mesh if you want to modify the individual vertices.

Thanks Ntero, I’d had a quick look over that but thought there may still be a way to go through the Plane interface. Cheers