I cant switch to gamemode

How can i fix these 3 errors?

Assets/Editor/ImageEffects/CreaseShadingEditor.cs(8,26): error CS0122: `UnityStandardAssets.ImageEffects.CreaseShading’ is inaccessible due to its protection level


Assets/Editor/ImageEffects/CreaseShadingEditor.cs(8,6): error CS1502: The best overloaded method match for `UnityEditor.CustomEditor.CustomEditor(System.Type)’ has some invalid arguments

--------------------------------------------------

Assets/Editor/ImageEffects/CreaseShadingEditor.cs(8,6): error CS1503: Argument #1' cannot convert object’ expression to type `System.Type’

Main file that comes with the download looks like this:

namespace UnityStandardAssets.ImageEffects
{
[CustomEditor(typeof (CreaseShading))]
public class CreaseShadingEditor : Editor
{

I corrected it by changing CreaseShading to CreaseShadingEditor on both lines, this seems to be what it’s looking for as if you change it to some other random title a new error appears not recognising it.

namespace UnityStandardAssets.ImageEffects
{
[CustomEditor(typeof (CreaseShadingEditor))]
public class CreaseShadingEditor : Editor
{

Protection level refers to its accessibility.

If something is private it cant be accessed by something which would need it to be classified as public.

Overloaded method refers to the arguments (input) to a function. If your function has 2 varieties

void MyFunc1()
{}

void MyFunc1(int num)
{}

you are free to call the function using MyFunc1() or MyFunc1(someIntNumber) but if you tried MyFunc1(someFloatNumber) or anything you receive the overload error.

The final error requires code but at a guess, you are trying to use an object as a System.Type, for example you attempt to create a List of something but that something is not expressely identified as a Type (like int, float, transform, customScript).

Perhaps you’ve stated for example

GameObject myOb;

List<myOb> obList  // but myOb is not a type.

Also where-as using a System.ValueType is required in JS to create a struct, this will error in C#.

i don’t get it