I want the object to disappear when touched for the future hunger system

I don’t know how an object should disappear when touched.
as I understand it, all bluprints must be in the character,
but I would like to add them to separate items, because I want to give each item its own characteristics when eating

If this doesn’t work out, can you tell me how all the blueprints should look in the final form?
an object can be considered a sphere.

Touch as touch screen on a mobile device? One way or another call Destroy on target Actor.

as I understand it, all bluprints must be in the character,

On the contrary. All objects should be separate actors.

In the actor you wish to disappear after touching it:

image

For this to work Touch Events must be enabled in the Player Controller:

image

1 Like

Make a new actor blueprint, give it a static mesh component and a sphere collider. Then write the logic for EventActorBeginOverlap and destroy the object when your character touches the Actor. Furthermore, create a blueprint component then add some characteristics to it such as HealthBonus, Special power or whatever. Then just add this component to your Actor. Then create child blueprints of it and assign the static mesh to whatever you want and it will have all the functionalities of the parent class.