Skip to main content

SetNetworkPrefabModifier

A class in Root.Township, the global namespace.

Forest fill spawn modifier that replaces each spawn point's prefab with one picked from a pipeline. Created as a generation asset.

Constructors​

MemberWhat it is
SetNetworkPrefabModifier()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

1 private and internal field
MemberWhat it is
private ObjectPipeline prefabObject pipeline that gives a NetworkPrefab.

Methods​

MemberWhat it is
override void Filter(ForestFillCore.Setup setup, ref SpawnParameters point, ref float weight)Sets the point's prefab to the result of prefab with default spawn data.