Spawn actor dosent work?

I’m so lost , have have bp actor, im trying to spawn, If i do event begin play spawn actor (it will spawn it)

In any other scenario(key pressed )it dosent work, i checked it with a print string and the command does finishes , but still nothing spawns (I did checked for consume input didnt helped)

Post script.

I event tried to write out the return data, in both scenaraio it does prints out the actor it supposed to spawn,

But no matter what i do , if i do anything else then event begin play it dosent work

Geez, why is this so small? My old :eyes:, man. Young people and their 20/20 eyesight…


  • is this a regular actor
  • how many are there
  • how are you testing this besides the print string
  • how many times does it print
  • is there anything in the spawned actor’s Construction Script / Being Play

Try this after mashing L:

What do you get?

Haha sorry about that, :smiley:

I created this actor with code,

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "TestEnums.h"
#include "ItemCatergoryEnums.h"
#include "Crafting_System.generated.h"


UCLASS()
class INVENTORY_CRAFTING_API ACrafting_System : public AActor
{
	GENERATED_BODY()
	
public:		
	ACrafting_System();
	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Item_Detailts")
		TEnumAsByte<EBarrierTypeStd>Item_Category;

	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Item_Detailts")
		FString Name = FString(TEXT("Name."));

	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Item_Detailts")
		FString Description = FString(TEXT("Desc."));

	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Item_Detailts")
		bool CanBeCrafted = false;

	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Item_Detailts")
		UTexture2D* Picture;
	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Item_Detailts")
		TMap<TSubclassOf< class ACrafting_System >, int>Item_Recipe;
};

There is one Parent_Actor, and the rest of (3) are childs of that actors,

I dont know of other methods to test it out,

It prints as many times as many times i press L

Nothing in Construction Script / Being Play

I tested it out and it printed out" 4"
image

Which is the right ammount i think

Okay i managed to solve it , It was completly my fault, i will post a reply in a sec

Turns out that the pickup event i made , messed it up. For some reason even tought i set a rule that only the Main Character can pick it up, it intereacted with another actor, and got picked up as soon as it was spawnned., I set the rule again an it works fine now

Altought , its still dosent explain it to me , why it didnt got picked up when i used the begin play but im not even gonna question it :smiley:

Thank your for your time and help

if this prints an ever increasing value, the actors do spawn. We’re looking at a different issue altogether - we can’t see whatever represents them? What were your expectations here? What are we supposed to see? The static meshes?

There is one Parent_Actor, and the rest of (3) are childs of that actors,

What are we spawning to start with? Parents / children? When you say:

it dosent work

Do you mean that you cannot see the new spawn in the scene or? How are the static meshes of the actors that spawn, you can print their display names.