x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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

Product Version: UE 4.15
Tags:
more ▼

asked Feb 22 '17 at 02:18 AM in C++ Programming

avatar image

wangfei000079
1 3 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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

more ▼

answered Feb 22 '17 at 05:30 AM

avatar image

Shadowriver
37.3k 936 172 1117

avatar image wangfei000079 Feb 22 '17 at 10:50 AM

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?

avatar image Vertex Soup Jun 29 '17 at 09:11 PM

I'm interested in this as well.. So can we use it or not? :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question