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"

Possible to spawn an actor inside the canvas?


I have the UI setup consisting of different buttons. These are part of a panel and this panel also has slots. I want to display a 3D mesh inside this slot when a button is clicked. I'm not sure if its possible to do this. I first checked out SpawnActor but I guess this can be done only in world space. I wanted to know if its possible to spawn an actor inside the canvas.

Product Version: Not Selected
more ▼

asked Apr 10 '15 at 11:24 PM in C++ Programming

avatar image

11 1 2 3

avatar image eXi Apr 10 '15 at 11:50 PM

No. The only thing you can do is capturing the pawn in a tiny world and using "SceneCapture2D".


Combining this with an image that you draw (or better use UMG for this) and you can have a similar effect.

Here is a short forum thread where Kris posted a picture of the result:


avatar image aadithyabk Apr 11 '15 at 01:34 AM

Thanks for the assist!

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

1 answer: sort voted first

You can't spawn actors in anything other then world instace. Also canvas is only 2D it's not even 3D/GPU accelerated so you can't do anything other on it then drawing lines, shapes, text and rendering texture. UMG or Slate would maybe give more option, as i know it can't render mesh on 2D but i think closest thing that may help you is viewport widget:

https://docs.unrealengine.com/latest/INT/API/Runtime/UMG/Components/UViewport/index.html https://docs.unrealengine.com/latest/INT/API/Runtime/Slate/Widgets/SViewport/index.html

Also in this kind of problems where you hit some visual inability in engine, think out of the box, it does not matter how thing is done and what you see in code and in editor, what matters is what player see, the final reasult, think of yourself as illusionist.

more ▼

answered Apr 11 '15 at 12:22 AM

avatar image

35.8k 927 169 1105

avatar image aadithyabk Apr 11 '15 at 01:33 AM

Thanks for the assist! I'm new to the engine and I'm learning it and complete tasks at the same time. So, I wasn't exactly sure if I was missing something or its not possible at all.

(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