- Home /
Prefab Invisible on Canvas
I have a 2D scene. Everything works if I Instantiate the prefab onto Canvas. mine set to (screen space - overlay) thing.transform.SetParent(GameObject.FindGameObjectWithTag("Canvas").transform, false);
But I can't get it to show up if I try to Instantiate the thing into another gameobject. If I change to
thing.transform.SetParent( GameObject.FindGameObjectWithTag("AdifferentTagNameIhaveInMyList").transform, false); thing.tag = "Graffiti"; thing.layer = 10; thing.name = "NewThing";
Nothing works, it wont show up or its behind the camera or wrong display...i dont know. I see them pop up as they should in the hierarchy while in play mode, so they get there...but can't make them visible?
Any ideas?
Your answer
Follow this Question
Related Questions
Prefabs don't Show Up on Canvas 1 Answer
Instantiate Prefab (Image) and show it on the screen? 1 Answer
How to refference a Prefab in a saving/loading system? 0 Answers
Problem with build version 1 Answer
Issue with GUI Gap 1 Answer