Drag Problem


In my project, when I drag my Player object from Hierarchy to Resources folder in Assets, it shows the components of the script belonging to the object as none. I deleted the script’s component’s from the object on Hierarchy, I added again and clicked on Overrides and applied all but still that components are missing in the object which I drag into Resources folder. I also tried to drag it to Prefabs folder because I thought maybe the problem is on Resources folder but result is same. What can be the problem?

Probably it’s because the FocalPoint and Joystick aren’t part of the prefab. I assume they’re not under the Player object in Hierarchy, correct?

1 Like

Yes, they are not. I think I should take FocalPoint and Joystick using GameObject.Find in start method of the script