Class GhostPrefabCreation
Helper methods and structs used to configure and create ghost prefabs
Inherited Members
Namespace: Unity.NetCode
Assembly: solution.dll
Syntax
public static class GhostPrefabCreation
Methods
Name | Description |
---|---|
CollectAllComponents(EntityManager, NativeArray<Entity>, out NativeList<ComponentType>, out NativeArray<int>) | Helper method to build a list of all component types on all children of a ghost prefab, should not be called directly. |
ConvertToGhostPrefab(EntityManager, Entity, Config, NativeParallelHashMap<Component, ComponentOverride>) | Converts an entity to a ghost prefab, and registers it with the collection.
This method will add the |
FinalizePrefabComponents(Config, EntityManager, Entity, GhostType, NativeArray<Entity>, NativeList<ComponentType>, NativeArray<int>, NetcodeConversionTarget, NativeArray<GhostPrefabType>) | Strip components which are not used, and add the ones which should always be present on a ghost prefab |