CommonPrefabs
A class in Root.Township, the global namespace.
Global settings asset with shortcuts to prefabs and items used everywhere: pouch, coin, pages and the player template. Read through the static properties.
- Listed in Global namespace: C to D
- Inherits or implements
GlobalSettings<CommonPrefabs> - Derived types
CommonPrefabs,CommonPrefabs.Create - Nested types
Create - Attributes
GlobalSettings
Constructors
| Member | What it is |
|---|---|
CommonPrefabs() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
7 private and internal fields
| Member | What it is |
|---|---|
private Shader blurShader | Backing field for BlurShader. |
private NetworkPrefab coinPrefab | Backing field for CoinPrefab. |
private Item duplicatePageItem | Backing field for DuplicatePageItem. |
private Item pageItem | Backing field for PageItem. |
private Player playerTemplate | Backing field for PlayerTemplate. |
private PickupDockSettings pouchDockSettings | Backing field for PouchDockSettings. |
private Item pouchItem | Backing field for PouchItem; PouchPrefab also reads its prefab. |
Properties
| Member | What it is |
|---|---|
static Shader BlurShader { get; } | The blur shader. |
static NetworkPrefab CoinPrefab { get; } | The coin prefab. |
static Item DuplicatePageItem { get; } | Item for a duplicate page. |
static Item PageItem { get; } | Item for a page. |
static Player PlayerTemplate { get; } | The player prefab template. |
static PickupDockSettings PouchDockSettings { get; } | Dock settings used by pouches. |
static Item PouchItem { get; } | The pouch item. Docking it is ignored by several systems, such as repair boxes. |
static NetworkPrefab PouchPrefab { get; } | Network prefab of the pouch item, used by SpawnHelper.SpawnPouchOrPickup. |