private void OnViewPortLoaded(object sender, RoutedEventArgs e)
 {
     if (m_bWorldLoaded && !PreviewScene.IsCreated)
     {
         IRenderSurface renderSurface = m_viewPortControl.GetRenderSurface();
         PreviewScene.EditorThread_CreateScene(renderSurface, EInputClass.AssetPreview);
         Input.SetInputClassActive(EInputClass.AssetPreview, IsActive);
     }
 }
        public override void PostWorldLoad()
        {
            base.PostWorldLoad();

            m_bWorldLoaded = true;
            if (m_viewPortControl.IsLoaded && !PreviewScene.IsCreated)
            {
                IRenderSurface renderSurface = m_viewPortControl.GetRenderSurface();
                PreviewScene.EditorThread_CreateScene(renderSurface, EInputClass.AssetPreview);
                Input.SetInputClassActive(EInputClass.AssetPreview, IsActive);
            }
        }