C# Coding error

I get the error Expression denotes a type', where a variable’, value' or method group’ was expected whenever I try to do this code:

mat = EditorGUILayout.ObjectField(mat, Material, true);

People say you use the ‘new’ keyword before it, but I couldn’t get it to work.

I see HERE that they use typeof(SomeType) instead of the way you have it “Material”. If that isn’t the problem, your single line of code looks similar to the script reference so I’m betting the problem is not this line of code.