P
P
password222021-02-01 02:03:31
Unity
password22, 2021-02-01 02:03:31

How to combine prefabs in Unity?

Good evening. I've run into the same problem and can't find a solution.
Let's say:

I have a character prefab that spawns at the start of the game. The character has a public field - for health bar'a.
I'm trying to:
1) make the health bar a prefab. This does not work, because the bar field remains empty when the game starts.
2) I tried spawning the canvas prefab, leaving a separate child prefab health bar in it, nothing happens.

I can't find anything on this topic. I would appreciate any help, thanks

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question