Question by
Eraytuncer · Sep 07, 2018 at 08:33 AM ·
uiguicanvas
Unity CanvasGroup's alpha is set to 0 when Instantiate
I have created a prefab holding a CanvasGroup component inside. When I instantiate it, its alpha becomes 0 even though in the prefab it is set to 1.
RemoteDiffMenu remoteDiffPrefab = Resources.Load<RemoteDiffMenu>("Prefabs/Utils/UI/RemoteDiff");
RemoteDiffMenu remoteDiff = Instantiate(remoteDiffPrefab, transform);
It is instantiated under another CanvasGroup by the way.
Both SettingsMenu and RemoteDiff hold a CanvasGroup
RemoteDiff's Canvas Group:
Comment
Your answer
Follow this Question
Related Questions
How to forbid float sizes and positions of all UI elements of UGUI while editing? 1 Answer
GUI buttons within an augmented GameObject AR Foundation 0 Answers
Problem with creating button via script. 1 Answer
How to physics raycast through overlay UI? 1 Answer
Text in UI disappears when clicked on 0 Answers