36 lines
1014 B
Plaintext
36 lines
1014 B
Plaintext
URL: https://wiki.studiominus.nl/internalReference/Map.html
|
|
Title: People Playground Modding - Map
|
|
==================================================
|
|
|
|
public class Map
|
|
Inherits ScriptableObject
|
|
[CreateAssetMenu(menuName = "PPG/Map")]
|
|
A map
|
|
Fields
|
|
public string UniqueIdentity
|
|
[ContextMenuItem("Regenerate identity", nameof(RegenerateIdentity))]
|
|
A globally unique identity. Automatically generated.
|
|
|
|
public string Description
|
|
[Multiline]
|
|
Short description of the map.
|
|
|
|
public string Author
|
|
Name of the creator of the map.
|
|
|
|
public Sprite Thumbnail
|
|
Thumbnail of the map 512x512
|
|
|
|
public Sprite Preview
|
|
Large preview image of the map.
|
|
|
|
public GameObject Prefab
|
|
[Space]
|
|
Reference to the prefab of the map to instantiate. This can be null if the InstantiateOverride delegate isn't null
|
|
|
|
public MapInternals EditorMapAssembly
|
|
Used to assemble an editor map into a fully functional map
|
|
|
|
public Action<Transform> InstantiateOverride
|
|
[System.NonSerialized]
|
|
If not null, the map loader will use this function instead of Prefab |