Add support for viewport icons rendering in prefab editor window

This commit is contained in:
Wojtek Figat
2021-02-17 17:42:40 +01:00
parent 978ee84aea
commit 7ad64d0284
4 changed files with 109 additions and 32 deletions

View File

@@ -6,7 +6,7 @@
struct RenderContext;
class SceneRenderTask;
class Scene;
class Actor;
/// <summary>
/// Editor viewports icons rendering service.
@@ -17,9 +17,9 @@ DECLARE_SCRIPTING_TYPE_NO_SPAWN(ViewportIconsRenderer);
public:
/// <summary>
/// Draws the icons for the actors in the given scene.
/// Draws the icons for the actors in the given scene (or actor tree).
/// </summary>
/// <param name="renderContext">The rendering context.</param>
/// <param name="scene">The scene.</param>
API_FUNCTION() static void DrawIcons(API_PARAM(Ref) RenderContext& renderContext, Scene* scene);
/// <param name="actor">The actor (use scene for faster rendering).</param>
API_FUNCTION() static void DrawIcons(API_PARAM(Ref) RenderContext& renderContext, Actor* actor);
};