Hi guys I'm trying to parent an instantiated asset to another asset(also created at run time) The code I'm having to write right now does not make me happy and just trying to make sure I'm doing the best thing possible. Basically I have to set the localPosition to zero, localRotation to Identity and capture the scale before parenting to apply it after parenting. Terrible...
Here is the code.
Is there a better way to be doing this?