Search Unity

[NetCode] Nested Prefab Ghost

Discussion in 'NetCode for ECS' started by Flipps, May 19, 2020.

  1. Flipps

    Flipps

    Joined:
    Jul 30, 2019
    Posts:
    51
    When i try to create a ghost from a nested prefab i always get this error:

    "The ghost {ghostAuthoring.gameObject.name} is not a valid prefab, all ghosts must be the top-level GameObject in a prefab. Ghost instances in scenes must be instances of such prefabs"

    Are there any plans that ghosts work with nested prefabs, too? Would be nice to have for different enemys / players which share 90% of the same components.
     
  2. Strong_Hammer

    Strong_Hammer

    Joined:
    Aug 8, 2015
    Posts:
    4
    Did you ever find a answer to this? I am getting the same error, just following the documentation
     
  3. NovaEiz

    NovaEiz

    Joined:
    Sep 6, 2017
    Posts:
    53
    You can use Nested prefabs. But you can't use A if there is a prefab B inheriting A.

    It is written in the error that you can only use the upper level.