hii, I have a big problem with updating scripts in inspector, when I write the code, I enter code and save, but by inspector the code are not saved.
if I try to close unity and reopen it it seems that the code has been saved, but I should always turn it off and on.
help me please!!!
Does your class inherit from monobehavior, I believe that classes need to or else it won’t update in the inspector.
public class yourClass : monobehavior {}
Inspector only shows fields/properties that are public or have the attribute [SerializeField]
, thus you should revise your variables.
If you can give more details of your question, I’ll try to help
Every time you finish editing a script you have to give Ctrl + S, to save, in VS code goes in your script and press Ctrl + S that will solve.