Skip to content
Version 2.11.0
↓ Get the launcher

IEntityPortraitView interface

Camera-interaction controls for the entity portrait (drag/scroll/resize).

public interface IEntityPortraitView
name description
Orbit(…) Rotate the portrait subject. dx/dy are pointer-drag deltas in pixels (horizontal drag spins the model; vertical drag is currently ignored).
Pan(…) Pan the portrait camera (shift+drag). dx/dy are pointer-drag deltas in pixels; the look-at point slides so different parts of the model can be framed.
SetViewport(…) 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.
Zoom(…) Zoom the portrait view. Positive delta moves closer (e.g. scroll-wheel up).