- Home /
Question by
gkillz · Dec 27, 2016 at 01:05 PM ·
inspectoreditor-scripting
How to change Inspector variable from code, so that when i exit the play mode the new values persist ?
How to change Inspector variable from code, so that when i exit the "play mode" the new values persist, here i wont be changing the values from the inspector, instead i will be setting them from the code. but i want these values to persist after the play mode.
Comment
Answer by HafizAli · Dec 27, 2016 at 01:20 PM
Actually this is not possible when you declare a variable as public it is only be change from inspector .. you have to use private modifier if you want to change them during the playmode ..