unity dechild an object sends it back to the localposition code example
Example: transform object according to its parent unity
transform.localPosition = new Vector3(12.5f, 12.5f, 12.5f);
transform.localPosition = new Vector3(12.5f, 12.5f, 12.5f);