Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

Changing parent after deactivation error?

$
0
0
For my resource management, I'm trying to return my resources to a parent object upon deactivation, like so: void OnDisable() { transform.SetParent(obj.transform); } Everything seems to run as expected, apart from, when setting the parent, it throws the error "GameObject is already being activated or deactivated." Does anyone know as to why this error shows, or anyway to disable it?

Viewing all articles
Browse latest Browse all 2891

Trending Articles



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