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#?