Overwritten Interaction Function is not called on Copies and instantiated GameObjects
I have a first Person character that can Interact with GameObjects it looks at through a Raycast. Pressing E will change the GameObjects Tag, which triggers the Interact() function once, then changes the Tag back. Interact() is an empty public virtual void and is then overwritten by various Scripts on various interactable GameObjects. This works fine until I Instantiate a GameObject, copy one that is already in the Scene, or Set an inactive GameObject to active. In all 3 cases the Interact() function is not called at all. The Tags and the Raycaster work fine, but the actual Interaction() function is not even entered, which I checked with a Debug Message. Any Idea why this mechanisn only works on GameObjects manually placed into the scene from the beginning?
Your answer
Follow this Question
Related Questions
GVR camera does not work with third person character controller 0 Answers
[SOLVED] What happens when I call a virtual void that is not overwritten? 2 Answers
Duplicate class name in metadata without implementations in its virtual methods 0 Answers
Can I run a virtual machine (i.e. Windows XP) inside an app created by Unity? 1 Answer