Archive 17/01/2023.

How to draw a position mark?

victorfence

Hello everyone,

I want to draw the position mark as three different colored lines.

I noticed there’s a mark inside urho3d editor’s viewport:

I comment out this line
CreateGizmo();

The handles removed and this is what I want.

after digging into the codes, I still can’t figure out how the lines are drawed. Can you explain a little bit about this?

Thank!!!

victorfence

Ok, I’v got this done, after doing more researching

void HandleUpdate(StringHash eventType, VariantMap& eventData) {
DebugRenderer@ debug=scene_.GetComponent(“DebugRenderer”);
debug.AddNode(scene_.GetChild(“cameraNode”),1.0, false);

Thanks.