How to disable child adopting the transform of its new parent object?

Hey, I’ve just stumbled upon something weird where when I make an object at position (-5336.3, 11.5, 5952) the child of an empty at position (0, 0, 0) the child object changes its transform to (0, 0, 0). Anyone know what could be making this occur and how to stop it?

I assume that you use Transform.SetParent(), and it takes two parameters. The second one, of type bool determines whether or not the object will keep it’s world relative transform (position, rotation, scale). Try changing that parameter.