A class in Root.Township, Alta.Meta.UI.
Asset that supplies a list of object names as console auto-completions. Created from the Township, Object Names In Folder menu.
Constructors
| Member | What it is |
|---|
ObjectNamesInFolder() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
5 private and internal fields
| Member | What it is |
|---|
private string assetTypeConstraint | Asset type to limit the search to. |
private string[] containingBehaviours | Component type names a GameObject must have to be listed. |
private string folderPath | Asset folder to collect names from. |
private bool getNames | Inspector button that runs GetNames. |
private string[] objectNames | The stored names. |
Properties
| Member | What it is |
|---|
string[] Completions { get; } | The stored names, offered as auto-completions. |
Methods
| Member | What it is |
|---|
void GetNames() | Meant to collect names from folderPath; in this build it does no search and sets objectNames to an empty list. |
1 private and internal method
| Member | What it is |
|---|
private bool HasBehaviours(Object obj) | True if the object is a GameObject with every component type in containingBehaviours. Not called in this build. |