I’m not sure if I understand what it is that you’re asking. Parent locations are not manipulated by child objects unless a script specifically does that. I’m guessing you’re trying to set a child objects transform location relative to the parent? To do that you would use localPosition.
This isn’t really how transform hierarchies work. The child’s position is dependant on the parent, not the other way around.
Do note that the inspector shows a transform’s local position, not it’s world position. So if this ‘parent’, is the child of something else, it is probably (0, 0, 0) local to its parent.
this 2 objects have different tranform.position but they are in the same location
I uploaded 2 pics 2 objects which both of them are parent has different tranform.position and they are on the same spot.
The transform handle in your image clearly demonstrates they are in different physical positions.
You have set your gizmos mode to center, not to pivot. In really rare situations center may be useful. However you should keep the gizmos mode to pivot and local whenever possible.
This does not change the position of the objects, just where and how the gizmos are displayed.
Just in case you don’t know what I’m talking about, it’s about those two settings:
same tranfrom.position different location
Thank you so much it worked I have been struggling about hours since yesterday