CardBoard Project. Instatiate prefab don't interact with Player
Well, first of all sorry for my english...
The question/problem is the follow:
I Instantiate a prefab cube that has an Event Trigger (Pointer Enter, Pointer Exit). This Event Trigger interacts with a GameObject called Player to call some function. The problem starts now, if a make an public GameObject player on the SceneManager GameObject and attach the prefab player, this doesn't interact but if I attatch, while game runs, the player I have on the scene its works perfectly. I need to do this with code and I'm going a little mad...
The question may be "How can I attach a GameObject from the actual scene to an Instantiate Prefab with an EventTrigger, in C#?"
Your answer
Follow this Question
Related Questions
How would I go about adding a tooltip to a Unity UI Image? 0 Answers
How do you set Prefabs into a GameObject array that will activate/deactivate when called? 1 Answer
How to creating a Gameobject from a prefab via scripted UI BUTTON 1 Answer
Drag and Drop 3D objects. 0 Answers
UnassignedReferenceException: The variable has not been assigned, even though it has. - c# 3 Answers