Hi Unity Community, it´s me again :)
I just want to save my gameobject in my scene as prefab and i have this javascript which works BUT, if i try to build my android game i get errors:
saveManager.js(15,48): BCE0005: Unknown identifier: ´ReplacePrefabOptions´.
saveManager.js(15,1):BCE0005: Unknown identifier: ´PrefabUtility´.
Error building Player because script had compiler errors
Here is my script:
#pragma strict
var level : GameObject;
var savePrefab : GameObject;
function save()
{
PrefabUtility.ReplacePrefab(level, savePrefab, ReplacePrefabOptions.ConnectToPrefab);
}
but What´s wrong?
Have someone an idea what this means?
Thank´s
//////////EDIT
I found my problem:
http://answers.unity3d.com/questions/578964/prefabutility-android.html
but is there a way to do it anyway?
↧