I have tried changing the parents this way and one or two others but I keep getting the error I get the feeling I am supposed to do this when I create the instance?
**
Finally realised I have been trying to change the actual prefab and not the instantiated object, how would I reference the new object I just created?
Any advice appreciated.
Setting the parent of a transform which resides in a Prefab Asset is disabled to prevent data corruption (GameObject: 'SlippyRicky').
UnityEngine.Transform:SetParent(Transform)
What you’re referencing there is the playerCharacter prefab which doesn’t exist in the scene so Unity is immediately going to complain about that, what you should be doing is something like.
Oh an extra point, with the way I’ve done it if you have the instantiated gameobject in the update function for example you will only be able to call it there but you can assign the instantiated object though to make it accessible from everywhere even in other scripts if you need to.
Can someone help me? I am working on trying to make my Instantiated object have the same functions as the original one but it only makes another copy of its shape.