Acessing a global variable in shader

Hello,

Is there a way to create a global variable accessible from shaders, besides the already built-in state variables?

Ok, I solved the problem.
The “name” variable has to be the same as the uniform variable name.

simple like that:

in Script:
Shader.SetGlobalFloat(“_CAMERA_FOV”, this.camera.fov);

in Shader:
uniform float _CAMERA_FOV = 60.0f; //setting a default value.