Quantcast
Channel: Questions in topic: "parenting"
Viewing all articles
Browse latest Browse all 302

Setting the parent of a transform which resides in a Prefab Asset is disabled to prevent data corruption

$
0
0
Hi guys, I am facing this problem again and again. I cannot find solution. I think my code is right, but where is the problem? GameObject visual = Instantiate(placementObject[num], hit.point + visualOffset, Quaternion.identity); visual.transform.SetParent(parentObject.transform); I got error message on this line -> visual.transform.SetParent(parentObject.transform);

Viewing all articles
Browse latest Browse all 302

Trending Articles



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