Quantcast
Viewing all articles
Browse latest Browse all 2891

I have a problem with my unity joining script

The error is Setting the parent of a transform which resides in a Prefab Asset is disabled to prevent data corruption (GameObject: 'Content(Clone)'). UnityEngine.Transform:SetParent(Transform) JoinGame:OnMatchList(Boolean, String, List`1) (at Assets/JoinGame.cs:48) UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr). This line of code i use and its from the brackeys tutorial on how to make a fps game. foreach (MatchInfoSnapshot match in matches) { GameObject _roomListItemGO = Instantiate(roomListItemPrefab); _roomListItemGO.transform.SetParent (roomListParent); roomList.Add (_roomListItemGO); } Please someone help!

Viewing all articles
Browse latest Browse all 2891

Trending Articles



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