Search Unity

Prefabs script references

Discussion in 'Prefabs' started by MrThe96Game, Feb 4, 2019.

  1. MrThe96Game

    MrThe96Game

    Joined:
    Oct 4, 2018
    Posts:
    4
    Hi.
    I have a question about new prefab system.
    I have two prefabs in my project: enemy and path (0).
    As you can see in the Hierarchy screenshot, path prefab has 3 gameobjects, which are the actual waypoints. Moreover, in my enemy prefab I put a little script with a list in order to get a reference for each point.

    I tried to insert the waypoints using "classic scene" and the "prefab mode". The only way I found to achive my target (put waypoints in script references) is by put path prefab as a child of enemy prefab.

    How can I put those 3 waypoints in enemy prefab script references without "childing" path prefab using this new prefab system?

    Anyway, thank you for reading and sorry for my bad english
     

    Attached Files: