Ever had to spend so much time trying to properly link GameObjects using public variables? It takes time that could be better spent getting other things done. This is where the "NightPen, LLC Utilities GameObjects Package" becomes your friend. The NightPen Utilities GameObjects package allows you to quickly link GameObjects without the use of numerous public variables. All you need to do is ask for a specific GameObject and the utilities will get that object and make it readily useable. The result is that you can now call your GameObjects in a few quick steps and move onto other elements of your project.
What the Utilities Package Allows You to Do
Void Initialize(): Let's you begin finding your GameObjects.
List GameObject GetByName(string name): Will find any GameObject by name, even disabled ones.
List GameObject GetByTag(string tag): Will find any GameObject with the specified tag.
List GameObject GeByID(int id): Will find any GameObject with an instance ID that matches the passed in ID.
GameObject GetFirstOrDefaultByName(string name): Will return the first GameObject with the name that matches the passed in name.
GameObject GetFirstOrDefaultByTag(string tag): Will return the first GameObject with the tag that matches the passed in tag.
GameObject GetFirstOrDefaultByInstanceID(int id): Will return the first GameObject with the instance ID that matches the passed in Instance ID.
What Comes with the Utilities Package
Examples: This allows you to see the utilities in action.
Documentation: This API informs you about how to use the utilities, the various code elements necessary to put the utilities to use, and the advantages of using the NightPen Utilities. This also includes example code.
GameObjects.cs: This is the actual code file that will allow the utilities to work when linked into the project code.
New to Version 1.6
In Version 1.6, there are two new methods GetComponent T and Get(). The API and demos have been updated to reflect the new changes and allow you to learn how to use them.