Skip to main content

SavePrefabAtButton

A class in Root.Township, the global namespace.

Editor helper with an inspector button to save a prefab to a path. The save method isn't in this build.

Constructors​

MemberWhat it is
SavePrefabAtButton()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

MemberWhat it is
string directoryFolder to save into. Read-only in the inspector.
string fileNameFile name to save as.
2 private and internal fields
MemberWhat it is
private GameObject prefabThe prefab to save.
private bool savePrefabAtInspector button field that calls SavePrefab.