Search Unity

Script problem

Discussion in 'Getting Started' started by Matt_Makes, Jan 11, 2023.

  1. Matt_Makes

    Matt_Makes

    Joined:
    Jan 11, 2023
    Posts:
    1
    So here the variable is public,but when I go to the inspector the variable isn't there I saved the code and went back to the script and it's still not there upload_2023-1-11_15-52-25.png
     
  2. RichAllen2023

    RichAllen2023

    Joined:
    Jul 19, 2016
    Posts:
    1,026
    Show us your code (using CODE tags), we can't diagnose problems if we don't know the symptoms, kind of like Doctors :D
     
  3. tleylan

    tleylan

    Joined:
    Jun 17, 2020
    Posts:
    618
    The simplest solution for "odd behaviors" like this is to simply remove the script component and then to add it back.