Instantiate prefabs in webplayer doesn´t work

hi everyone,

in my project I have several prefabs that I instantiate by code at the start moment.

in one script I have:

var Estadio1 : GameObject;

Estadio1 = Instantiate(Estadio1);

in the editor, I have linked the Estadio1 variable with the prefab that I have in the Project folder.
When I run the program and when I build the standalone version, all works fine and the prefab is instantiated.
But just if I build the webplayer the prefab is not instantiated. Nothing appears in the screen.

Any idea? the prefabs have a special consideration in the webplayer version?

thank you very much

igorlean

It may or may not be the cause but you should name your variables better. You’re actually overwriting your prefab with the instantiated version in the code you wrote.

but my prefab name is Estadio. Estadio1 variable has the Estadio prefab assigned in the editor.

if i only need one instance of Estadio maybe I should not call this sentence?

Estadio1 = Instantiate(Estadio1);

thanks