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);
}