A class in Root.Township, Alta.Networking.
Global settings asset that maps prefab hashes to their asset paths. Get it with PrefabNameMap.Instance.
Constructors
| Member | What it is |
|---|
PrefabNameMap() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
4 private and internal fields
| Member | What it is |
|---|
private uint[] hashes | Prefab hashes, matched by index with paths. |
private Dictionary<uint, string> map | Backing field for Map. |
private string[] paths | Prefab asset paths, matched by index with hashes. |
private bool setup | Editor button that refreshes the map for a build. |
Properties
| Member | What it is |
|---|
Dictionary<uint, string> Map { get; } | Prefab hash to asset path, built when the asset loads. |
Methods
2 private and internal methods
| Member | What it is |
|---|
private void UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize() | Builds Map from the hashes and paths arrays. |
private void UnityEngine.ISerializationCallbackReceiver.OnBeforeSerialize() | Does nothing. |