goup some variables of a script in the inspector view

say I have eight vaviables,4 of them have some kindof relation,other 4 have other relation…I think maybe it is good to group or seperate them into 2 visually,in the inspector view. like 2 dropdown button,once you clike any one of them,panel expands and 4 variables show up…any settings like this??? I use C#Script…I know JavaScript can do this,but I want it to be in C#Script

You can do it in C# by creating a class to hold the variables and marking it with the Serializable attribute:-

[System.Serializable]
class MyVars {
   public float x, y, z;
   public string name;
}

You might want to take a look on the asset store for Pimp My Editor, handy little tool for $5 :P.