Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

Unity3d Save Gameobject as Prefab Building Problem Android

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

Viewing all articles
Browse latest Browse all 1875

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>