void Resize()
        {
            if (loaded)
            {
                float aspectRatio = panel.Height / (panel.Width * 1.0f);

                UnrealScienceScripting.ResizeViewport(aspectRatio);
            }
        }
Exemple #2
0
        private void host_SizeChanged(object sender, SizeChangedEventArgs e)
        {
            float aspectRatio = panel.Height / (panel.Width * 1.0f);

            UnrealScienceScripting.ResizeViewport(aspectRatio);
        }