LaserDefender L13: Can't show the paths that are children of the waypoint

In lesson 13: Create lists of waypoints, there’s a step where we add the waypoints, that are underneath our path, to the enemy gameObject.

The instructor can look inside the parent GameObject
Screenshot 2020-04-23 at 07.45.47

However for me, that arrow isn’t there so I can’t reach the child gameObjects, to drag them inside the enemy component

Screenshot 2020-04-23 at 07.45.52

Any help would be appreciated, thank you!

he explained that you need to do it manually, to set path into scene and just select it that way

Hi pilfton,

I assume you are using a newer version of Unity, aren’t you? If so, create the path in the Hierarchy. When you are supposed to make it a prefab, drag the parent into your Assets folder. To edit your prefab double click on it to get into the prefab mode.

Did this work for you?

Hi Nina, sorry for the late reply, I’m not sure if I’m doing this correctly.

I can see the waypoints in my left panel (that’s the hierarchy I suppose?) but how can I be sure that I have connected both prefabs to each other? And not just the waypoints that are floating around in my scene, I’m adding some screenshots for clarification.

Thank you very much!

It does not matter where the waypoints come from. We are just reading their position values and do not do anything else with the game objects.

Keep the structure as seen in the first screenshot, assign the waypoints to your array. That’s fine so far.

Then proceed with the course. At some point, Rick will remove the waypoints array and replace it with a path prefab. Unless I’m wrong, you already created that prefab meaning the path with its children, so all you will have to do is to assign that prefab when Rick tells you to do that in the video.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.