Question by
Inno_Kai · Dec 07, 2015 at 11:55 AM ·
webplayerfunctionplatformbuild errorunknown-identifier
Switching to WebPlayer -> "function" -> Unknown identifier inside main.js
Hi. I´ll hope that you guys could give me a hint for my problems making a build for webplayer:
Inside my "main.js" are alot of little functions like
function set_visibility(obj:GameObject, show:boolean)
{
var renderers = obj.GetComponentsInChildren(Renderer);
for (var r : Renderer in renderers)
{
r.enabled = show;
}
}
By switching the platform from windows to webplayer following example error appears: set_visibility(gameobject, false); ------> Unknown identifier: 'set_visibility'
Thx for any hints to help me with my problem.
Comment
Your answer
Follow this Question
Related Questions
Unity Hangs on WebPlayer Build at Postprocessing Compressed web stream? 2 Answers
web GL Publishing 1 Answer
Unity not working in Opera 3 Answers
How do you get Web Player to show up? 2 Answers