MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / OnDebugDrawSelected

Method OnDebugDrawSelected

Source/Engine/UI/TextRender.cpp:419–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417#include "Engine/Debug/DebugDraw.h"
418
419void TextRender::OnDebugDrawSelected()
420{
421 // Draw text bounds and layout bounds
422 DEBUG_DRAW_WIRE_BOX(_box, Color::Orange, 0, true);
423 OrientedBoundingBox layoutBox(Vector3(-_layoutOptions.Bounds.GetUpperLeft(), 0), Vector3(-_layoutOptions.Bounds.GetBottomRight(), 0));
424 layoutBox.Transform(_transform);
425 DEBUG_DRAW_WIRE_BOX(layoutBox, Color::BlueViolet, 0, true);
426
427 // Base
428 Actor::OnDebugDrawSelected();
429}
430
431#endif
432

Callers

nothing calls this directly

Calls 3

OnDebugDrawSelectedFunction · 0.85
Vector3Class · 0.50
TransformMethod · 0.45

Tested by

no test coverage detected