Not a question. DialogManager overwrites parent canvas on init. Possible fix attached.

+1 vote
asked Feb 19, 2016 by anonymous
When setting the parent canvas for the DialogManager, which is required when using multiple canvases, the InitDialogSystem method overrides the preset.

I was able to get around the issue by changing lines 72-75 in DialogManager.cs as follows

            if (m_ParentCanvas == null) {

                transform.SetParent(FindObjectOfType<Canvas>().transform, true);
                m_ParentCanvas = rectTransform.root.GetComponent<Canvas>();
            }

1 Answer

0 votes
answered Feb 22, 2016 by admin (31,720 points)
selected Aug 22, 2016 by admin
 
Best answer
Hi there,

This has been fixed as of v1.1.0, which we submitted to the Asset Store for approval about 2 days ago :)

~ Declan.
Welcome to MaterialUI support! Ask us anything :)
...