Variable in script but not in Inspector

Hi, I’ve been seeing these in a few different instances and thought i’d post to check.

I add new variables to a script and they do not appear in inspector. It happens to packages that i download and install. This one dosen’t seem to have a namespace and i am not sure what is affecting it. Kind of driving me nuts!

Maybe some other override? There are no compilation errors and the game plays normal.

Script:

9379139--1311764--upload_2023-9-30_8-29-44.png

I bet there is.

Make sure your log console selector buttons are enabled. See this graphic:

https://discussions.unity.com/t/733002/10

https://discussions.unity.com/t/804947/4

Otherwise, rename one of the other fields. Does it change?

Or reimport all…

EDIT: it’s possible they package maker made a custom editor for this… look around for one, probably by finding all references of the class type…

If you install a package through the package manager, it usually gets installed in a central location for all your projects to use. If you want to modify the scripts in the package and have those changes stay, you need to copy that package from the central location into the individual projects package folder. Then you can make changes to it without it restoring the file.

2 Likes

Are you sure you saved your script?

Hmm i edited the tooltip and it was updated. Didn’t try the whole field! i’d do that.
Custom editor… not sure where to find that. but will see if i can find the references!