- Home /
Edit script properties under tabbed mode?
I want to have a "mode" drop down for a script object, and then store a set of property values for each mode. When you change the mode, it should restore the property values that were last set in that mode. Is there a way to do this?
Thanks!
Answer by ScroodgeM · Jul 24, 2012 at 10:18 PM
first.
to store values serialized in unity you should make them public
second.
if you want to show public values with any conditions you should use custom inspector
finally.
make a enum to list all modes
make an arrays to store values for each mode
make a custom inspector that first shows dropdown for modes and second based on selected mode shows it's and only it's properties.
Your answer
Follow this Question
Related Questions
public properties don't update 1 Answer
How to expose script properties in C# ? 3 Answers
run editor script when just returning from play mode 1 Answer
Best practice for properties "get{} set{}" ? 2 Answers
Model floats in the air when I jump. 1 Answer