Skip to content
Version 2.11.0
↓ Get the launcher

RenderTextureHostElement.OnViewportResize property

Optional: called each frame with the box’s current pixel size (w,h) so a 3D preview can size its render texture + projection to the (resizable) pane — fills it with no letterbox/stretch.

public Action<int, int>? OnViewportResize { get; set; }