Can I reuse Editor's transform/scale gizmo in game?
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
asked Feb 22 '17 at 02:18 AM in C++ Programming
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:
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
answered Feb 22 '17 at 05:30 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here