Hi
I can’t get variables to show up in the inspector :S
I read I had to set them so “public” and I did, but that doesn’t seem to help :S
Anything I’m doing wrong ?
Thanks !
//Edit: also tried putting “public float test = 5.0f;” inside the start method, but doesn’t work either :s
Did you try assigning the script to a GameObject in the editor? I believe the fields only become editble in the context of the script attached to another object.
I had this issue before, for some reason you’ll have to attatch the AddComponentMenu attribute.
You’ll have to change public class Underwater_Effect_forCam : MonoBehaviour
to this
[AddComponentMenu("WaterEffects/ForCamera")]
public class Underwater_Effect_forCam : MonoBehaviour
You can rename the menu to whatever you like.
@FizixMan LolrusPL
Thanks !
I indeed had to assign it to a gameobject to see it, though I also needed to add the AddComponentMenu line 
Though now when I remove the AddComponentMenu again the variables still show, very weird 
Ahh well, it’s fixed, so thanks ! 
Edit: now it also shows up when just selecting the script (when it’s not assigned to a GameObject).