inspector update

so i have some variables i changed in my script and i want the inspector to reflect the changed, how do i do that? or, how do i turn off that annoying feature so everything on my script is reflected in the inspector?

public variables are initialised based on values set in the inspector pane.

private variables are initialised based on values set in code.

You cannot change this behaviour.

so if i have a public list that needs to be accessed by other scripts i cannot change this list by hand? ie, i’m working with 5 variables that need tweaking, that means that every time i want to change these variables i have to hit play, then change them. thats stupid.

//in code use public variables if you want to see changes in the inspector
public int speed;

//use speed in your code not an absolute value.