i have 3 objects Object1,object2 and object3
object2 is the child of object1 already since start
using this lne of code i make object3 to be child of object1 successfully
object3 .transform.SetParent(object1 .transform.parent);
but i cant set postion of object3 same as object2, how can i do this plz help
i try this below code but it doesnt work for me
object3 .transform.position = object1 .transform.localPosition;
object3 .transform.eulerAngles = object1 .transform.localEulerAngles;