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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Cannot call Spawn Actor from UObject inherited blueprint?

I'm having a hell of a time trying to understand how to instantiate classes.

I have a Cannon class with a Fire function that spawns a projectile with a given spawn location. Cannon class is based on UObject because I only need this to be a collection of custom fields and methods. For some reason Spawn Actor from Class doesn't exist here and my only option is Spawn Actor for Gameplay Task. Is there a difference? Why doesn't Spawn Actor for Gameplay Task not have a transform argument?

My Cannon class used to be based on Actor Component, but due to polymorphism issues I keep running into with Actor Components (as described in this post) I refactored to UObjects so I can make proper use of Construct Object form Class.

Product Version: UE 4.14
more ▼

asked Feb 06 '17 at 09:28 AM in Blueprint Scripting

avatar image

101 33 36 41

avatar image GhostRavenstorm Feb 06 '17 at 09:51 AM

When I try to make a Spawn Actor from Class node in a blueprint that works then paste it in to my UObject derived one, it just says conflicting nodes substituted during paste and doesn't paste. No error message or log to tell me why.

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

1 answer: sort voted first

check out the answer to this question - they don't have a line break system, Nick recommends a example project where they use a vertical box of widgets https://answers.unrealengine.com/questions/64695/how-to-add-line-break-in-strings.html

more ▼

answered Feb 06 '17 at 11:17 AM

avatar image

995 22 27 125

(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