public Plane not visible in editor

Hello,

I have the strange thing that

public Plane plane;

is not visible in the editor.

I want to use Plane.GetSide and tried this code:

Plane doesn’t inherit from monobehaviour, so it doesn’t appear in the inspector. I think the confusion is, you’re thinking of the “Plane” you can add into the scene with the 3D menu option, and not the actual Plane class.

1 Like

If you mean as a property shown in the Inspector then it’ll be because it’s not Serializable like most of those geometry types.

That doesn’t stop you using it in code, it just won’t be serialized.

Its implementation is here.

3 Likes