Problem with the Inspector and Script
After watching a tutorial on entering/exiting vehicle and trying it out the setup myself, I ran into a problem where when place the script into my gameobject the variables under the script componet does not show up, what am I doing wrong?
Answer by meat5000 · Mar 06, 2018 at 09:54 PM
They dont show up because they arent allowed to, according to your code. The first link is information on the C# 'public' access modifier. The second is an SO question with a rundown of Default Visiblity in C#, which is basically what happens if you DONT tell it public, private etc. https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/public
Your answer
Follow this Question
Related Questions
How would I make a variable equal a variable but only its past value? 1 Answer
Create "Optional" public variable that won't throw an error 1 Answer
Why is Unity showing the wrong variables in the Inspector? 1 Answer
Calling variables from other script 0 Answers
Script error and no Variables showing 0 Answers