コード例 #1
0
ファイル: Player.xaml.cs プロジェクト: paladium/UnrealScience
        void Resize()
        {
            if (loaded)
            {
                float aspectRatio = panel.Height / (panel.Width * 1.0f);

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

            UnrealScienceScripting.ResizeViewport(aspectRatio);
        }