- Home /
Prefab not loaded in webplayer!?
Hi,
I had a prefab with guiText, I instantiate it at the first scene of my WebPlayer The prefab exists but, it didn't show the guiText component
Why?
Answer by BawsAnimations · Aug 01, 2013 at 06:07 PM
Please be more elaborate. I am guessing that these are the following issues :
the Hierarchy.1)The Prefab exists but isn't within
disabled by another script.2)The Prefab is disabled, or has been
within the camera's view.3)The GUItext coordinates are not
changing the GUI text's position.4)There might be a script that is
component(if that's what you're trying to do) This is the most help I can offer since you haven't explained in detail. Thumbs up this answer if it helped.5)Your script isn't referencing the
Answer by alienwoods · Aug 01, 2013 at 11:37 PM
Well i find the solution, the problem was, my script set the guiText.text value in the Awake step, and somehow in the webplayer build the code between the Awake step is not executed. So i moved it to the Start step, and everithing works fine.
Thanks for your answer and sorry, for being short :)
Yep but it's quite intresting, i newver find any documentation about this monobehaviour limitations in WebPlayer mode ! :)