- Home /
What prefab is my game object an instance of?
At some point in the editor I create a number of GameObjects from prefabs I have in my Assets folder.
At a later point, still in editor mode, in an editor script, I have references to some of the GameObjects I created earlier. I know that they came from prefabs. It it possible to find out the name of the prefab that they came from?
Thanks
Comment
Your answer
Follow this Question
Related Questions
How do I pass along which script triggered a function in trans script functions? 1 Answer
Character Saving 1 Answer
How to assign prefab at runtime? 1 Answer
GameObject.FindGameObjectsWithTag() to find Prefabs which are not in the scene 1 Answer
How to programmatically break prefab instance upon adding to hierachy 1 Answer