- Home /
Access different root
Is there a way to access a different root folder without having access to an object in said root?
I'm thinking about something like this:
Say I'm writing a script attached to ProtoHarvester, and I want access to the root directory of the Resources folder so I can run "GetComponents<>()" there. If I had access to an object that's already there I could do object.root.GetC...., but is there a way to do this without that?
I'd prefer to not have to add a dummy-element in Resources and forward that to the objects I want to be able to access the root with. I also don't want to put the Resources branch and the Player branches in the same object so they share the same root.
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
What is the Root when making a ragdoll 1 Answer
Multi player Game Plugin 1 Answer
2D : Rotation of Object With x-y Axis 2 Answers
Having Problem With Performing Collison with two prefab object. 1 Answer