How do you create a collapsible variable list in the inspector (C#)?

For example, if I wanted to create a collapsible list of variables within the component is UnityScript, I would simply do this:

PlayerScript.js
class PlayerScriptMovement {
   var runSpeed=10;
   var backpedalSpeed=5;
}
class PlayerScriptJumping {
   var enableJumping=true;
   var jumpHeight=7;
}

When I attach it to an object and view it in the Inspector, it creates 2 collapsible lists under the Player Script component called Movement and Jumping. Is there a way to do this in C#?

http://unity3d.com/support/documentation/ScriptReference/Serializable.html

after you declare your class create a variable to use your class so kinda like this :

class PlayerScriptMovement {
   var runSpeed=10;
   var backpedalSpeed=5;
}

var _PlrScriptMove : PlayerScriptMovement;

That should do it. Don’t use the same name for the variable as your class or you’ll get errors. Good luck