Quantcast
Channel: Questions in topic: "web player"
Viewing all articles
Browse latest Browse all 531

Switching to WebPlayer -> "function" -> Unknown identifier inside main.js

$
0
0
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.

Viewing all articles
Browse latest Browse all 531

Trending Articles