I’m trying to implement buttons into my game. I noticed iOS has the
UIButton class, which I tried, but upon drawing it nothing is shown. The asset image is properly loaded, I’ve checked this. The
SpriteBatch isn’t drawing on top of the buttons either.
Draw is properly being called on every frame. The button’s enabled property is set to
The code, simplified:
private List buttons;
public void AddButtons()
UIButton b = new UIButton(UIButtonType.Custom);
b.Frame = new System.Drawing.RectangleF(0, 0, 256, 256);
public void Draw()
foreach (UIButton b in buttons)
Why isn’t it visible?