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"

I can't seem to find my blueprint class to use in spawnactor function?

I've been working on an inventory system for my game for quite some time now. I finally got to the final step, which is to spawn my player's inventory when starting the game, that way I can pick up items to use. However, when I try to find the class for my inventory blueprint in the SpawnActor function, my blueprint doesn't appear in the list of selectable blueprints, despite being an actor component. Is there something I'm missing? Included are a few screenshots to show the items in question.

Thanks! alt text

alt text

Product Version: UE 4.20
Tags:
more ▼

asked Aug 21 '18 at 12:20 AM in Blueprint Scripting

avatar image

Sonictheyo19
1 1 1

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

1 answer: sort voted first

Your inventory is an actor component (judging by the icon) so it's not a fully fledged actor. This is not necessarily bad. Add it as a component from the dropdown in the character blueprint. No need to spawn it.

more ▼

answered Aug 21 '18 at 07:45 AM

avatar image

Everynone
13.7k 74 25 57

avatar image Sonictheyo19 Aug 21 '18 at 01:56 PM

Alright, I added it as a component to my character, but it seems that in game, when walking over the BaseItem that I'm using to test the system, nothing happens. Looking over my blueprints, it looks like I did everything perfectly, but there has to be something missing. Here's the link to the tutorial I followed:

https://wiki.unrealengine.com/Blueprint_Inventory

avatar image Everynone Aug 21 '18 at 02:00 PM

Me looking at the tutorial will not help you much.

You need to debug it. Start by putting Print String nodes where you think information may not be flowing.

What is BaseItem? How's the collision set up, who is colliding, how are you detecting it, is it working - that kind of thing.

avatar image Sonictheyo19 Aug 21 '18 at 02:06 PM

Alright, thanks. I’ll try that.

(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