Can I reuse Editor's transform/scale gizmo in game?

Hi, Friends,

I am going to pick up one object (static mesh), and move/scale it, it is possible to reuse editor’s view-port transform/scale gizmo to transform the object? Any help are appreciated.

Thanks you, guys,
Fei

No and yes

No, you can’t reuse editor code in the game, it is againsts EULA to distribute editor code with the game so you can’t use editor APIs

Yes, you can reproduce gizmo on your own, editor gizmo is draw using Primitive Draw Interface (PDI, FPrimitiveDrawInterface) which allows to draw simple shapes on screen, there also libary which allows to draw specific shapes:

https://github.com/EpicGames/UnrealEngine/blob/76085d1106078d8988e4404391428252ba1eb9a7/Engine/Source/Runtime/Engine/Private/PrimitiveDrawingUtils.cpp

I never played with PDI so i not sure how to inject it to scene, but i find this: https://forums.unrealengine.com/archive/index.php/t-71443.html

YOu might find more if you search

thanks you, Newest, :-), just one question, “… so you can’t use editor APIs”, it seems your typo, correct? It should be I cannot use Editor source code but I could use Editor API, right?

I’m interested in this as well… So can we use it or not? :slight_smile: