How Create a menu in script and inspector ??

Hi Guys.

I would like to create this.

78426-capture.png

I said that I am a beginner in C #

can you help me! :slight_smile:

thx :smiley:

Well, one way of doing it would be to create a serializable class as a container of sorts, i.e.

[System.Serializable]
public class MyVariables
{
    int number;
    bool toggle;
}

//And then in any other scripts
public MyVariables myVariables;

and if I want to call a variable how I done ??

[System.Serializable]
public class MySerializable
{
public bool MyVariable = true;
}

public MySerializable Serializable;

void Start () {
MyVariable = false;
}