change prefab transform unity code example Example: prefab gets character transform var playerTranform = GameObject.Find("Player").transform;