Gui Elements Not Visible - Element Type = "Unknown elem

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Gomboloid
Posts: 1
Joined: Sun Mar 21, 2010 2:21 pm

Gui Elements Not Visible - Element Type = "Unknown elem

Post by Gomboloid »

Hi,

I'm using the cross platform .NET wrapper for irrlicht. When I create a GUI button, it doesn't show up on the screen, and the 'type' for the item shows up in the debugger as 'UnknownElement'. I'm guessing the two are related.

I know the button exists because i can click on it; it's just invisible. Any help would be appreciated.

Relevant code:

Code: Select all

        public void AddButton(Rect buttonLocation, string buttonText, Action buttonAction)
        {
            GUIElement newElement;
            m_ElementIDToActionMenu[m_IdToUseNext] = buttonAction;
            newElement = m_Environment.AddButton(buttonLocation, m_Environment.RootElement, m_IdToUseNext++, buttonText);
            m_ActiveElements.Add(newElement);
        }
Post Reply