Skip to main content

ObjectNamesInFolder

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​

MemberWhat it is
ObjectNamesInFolder()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

5 private and internal fields
MemberWhat it is
private string assetTypeConstraintAsset type to limit the search to.
private string[] containingBehavioursComponent type names a GameObject must have to be listed.
private string folderPathAsset folder to collect names from.
private bool getNamesInspector button that runs GetNames.
private string[] objectNamesThe stored names.

Properties​

MemberWhat it is
string[] Completions { get; }The stored names, offered as auto-completions.

Methods​

MemberWhat 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
MemberWhat 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.