When setting the parent of an object is there a callback or some way to get a callback of the newly assigned child? Because as that is assigned I need data out of it. I could put this in the update loop. but that seems hacky.
I’m not aware of any such callback. You can always check the docs for MonoBehaviour though (if there is such a callback, it should be listed there).
What I’ve done in the past when I wanted to associate a callback with a specific action was to create a utility function to invoke the callback and then perform the action. This has the disadvantage of needing to remember to use the utility function (at least in cases where you want the callback to be invoked), but otherwise it’s a fairly straightforward and effective solution.
yeah. im just going to make a SetPlayer message.