- Home /
Question by
marshall50 · Dec 29, 2012 at 11:32 AM ·
inspector
Inspector script separation
Hello, I need to know, how can I create a seperation of variables in inspector to looks like this:
Health
Energy
Mana
-----Skills-----
One handed
Two Handed
How can I write "---Skills---" or somethink like this department?
Comment
Best Answer
Answer by save · Dec 29, 2012 at 11:54 AM
Currently the best way is to create a class,
var energyAttributes : Energy;
var skillsAttributes : Skills;
class Energy {
var health : int;
var energy : int;
var mana : int;
}
class Skills {
var oneHanded : int;
var twoHanded : int;
}
Then you'll reach the variables by, for instance, typing energyAttributes.health
.