Skip to content
Version 2.11.0
↓ Get the launcher

IEntityPortraitView.SetViewport method

Report the display box’s current pixel size so the portrait sizes its render texture + projection to match — it then fills the (resizable) pane top-to-bottom with no letterbox or stretch.

public void SetViewport(int width, int height)