#Third person cam error message
1 messages · Page 1 of 1 (latest)
As the error says, you have a variable called 'Cam' which is usassigned, meaning it has a null value. Therefore, when your script tries to access the value of the variable, it will throw you an error because when any line of cofe tries to accesd the value, it doesn't expect it to be null.
I would check whatever tutorial you're following the moment after the variable is created.
sorry i didnt read this carefully before but the tutorial i have been following did the same thing but they never got an error code sorry im just way to confused here is what they did
and how would i assign it by any chance
When you create a public variable, it appears as a field of your component. In the case of your script, I assume you need to drag your camera to that field.
I just want to quickly point out that I don't really like giving away answers because it doesn't feel like helping the other learn. From my perspective it is way more efficient to spend as many time as needed to understand somethinf rather than constantly asking for answers. For example, if you don't know how to assign variables but you have the hint that what you need to do is assign them, literally search that on google and there may be already answered related questions.
I'm not saying any of this to blame, I'm just trying to be a bit instructive in how I personally think your thinking methodology shouls be when facing problems. Atleast that's how I learned, spending hours and hours trying to fully understand the aspects of game development that I know nowadays, so yeah, don't take it in a negative way. 😄
oh ok i understand that ye i do need to dim down asking to much in helping me well thx for the hint ill try and figure it out in my own way
ok ib figured it out thank you
i was placing the wrong cam
i was meant to be using the main cam for this thanks alot
I'm glad you found it 🙂
Ye I just need to remember to assign stuff