Realtime Skybox

I am trying to have a realtime rendered skybox. I am doing this by attaching a Skybox component to my camera. The Skybox has a material with “RenderFX/Skybox Cubed” shader.

At runtime, I tried to assign a dynamic cubemap to the shader, using

mat.SetTexture(“Cubemap”, cubemapTexture);
or
mat.SetTexture(“_Cube”, cubemapTexture);

Neither work. I get this error:

Material doesn’t have a texture property ‘Cubemap’ or
Material doesn’t have a texture property ‘_Cube’

I checked source in the build-in shader, the texture parameter is called “Cubemap”.

What am I doing wrong?
Thanks

Solved the problem. I should be using “_Tex” as the parameter name, instead of “Cubemap”.

_Tex (“Cubemap”, Cube) = “white” {}

Thanks.