Search Unity

Resolved [NetCode] Is PredictedGhostSpawnRequestComponent out of date in the documentation?

Discussion in 'NetCode for ECS' started by adammpolak, Jan 10, 2021.

  1. adammpolak

    adammpolak

    Joined:
    Sep 9, 2018
    Posts:
    450
    It does seem to appear in the Asteroids sample released by Unity.

    And not including it after spawning bullet prefabs doesn't cause any issues.

    I am wondering if it was obviated by:

    m_BulletPrefab = GhostCollectionSystem.CreatePredictedSpawnPrefab(EntityManager, foundPrefab);
     
  2. twaananen

    twaananen

    Joined:
    Jul 24, 2017
    Posts:
    23
    Yes, it seems calling the function GhostCollectionSystem.CreatePredictedSpawnPrefab(EntityManager, foundPrefab);
    adds the PredictedGhostSpawnRequestComponent and that part has not been removed from the documentation.
     
    adammpolak likes this.