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.