How to make parented objects through code during the game ?
I want to Learn this because I want when I collides with the gun…the gun gets parented with the player
so the gun can be always with me
thanks for supporting !
How to make parented objects through code during the game ?
I want to Learn this because I want when I collides with the gun…the gun gets parented with the player
so the gun can be always with me
thanks for supporting !
GUNgameObject.transform.parent = PLAYERgameObject
That should be PLAYERgameObject.transfrom