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"

C++ Actor placed in Editor but not rendered in-game

Hi, I'm just starting to fiddle with UE4. After a few headaches I'm finally having some fun with it :).

Now my question: I generated a new FPS Project and changed the DefaultProjectile from the Example to have a lifetime of 3000 seconds, then I checked if it collides with the player. If it does a log message is generated. When I spawn that Projectile using the gun in-game I see it and it collides with the player (log is shown). So far so good... Now I navigated to that Actor class in the Editor and placed it in my map. The editor shows it, I start the game but it's not rendered. Still I can collide with it (log is shown again).

I don't get the missing link between UWorld->SpawnActor (in the OnFire of my Character) and the Editor doing it? Any ideas?

Product Version: UE 4.18
more ▼

asked Feb 02 '18 at 02:14 PM in C++ Programming

avatar image

1 1

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

1 answer: sort voted first

There is the Hidden In Game flag that could be set for it. I'm not exactly clear on what you are trying to do but I would check that first.

more ▼

answered Feb 02 '18 at 07:25 PM

avatar image

2.1k 70 38 259

avatar image JazzD Feb 03 '18 at 08:29 PM

When I flag that it's gone. I can't even run into the actor anymore. What I was trying to do: I wanted to create a simple 'item' (health pack or whatever). Placed from editor, you run into it, it changes your attributes. Because I started only a few days ago the projectile from the sample was what I had so I changed its behaviour. It works, but not if I place that actor in the editor. I can't see it then...

(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