Description
ScriptBuilder automatically generates C# scripts based upon a supplied or custom builder script. Make a custom builder that creates multiple ideal starting scripts or use it to generate a commonly used complex script. Alternatively use an existing builder like AnimatorBuilder (Tutorial), which probes the internal Unity Animator system to generate an Animator access script. This generated script will provide strongly typed access to your animator controller layers, states, parameters, and hash Ids using corresponding names (i.e. IsIdleState(), SetSpeed(), and UpperBodyLayer.CurrentStateName()).
TagAccessBuilder creates a script that provides type safe access to the Unity Tags, and is compatible with AiUnity MultipleTags (Enables multiple tags on a gameObject). The SkeletonBuilder creates a basic starting script and is easily altered to add boiler plate code like a custom logger (i.e. AiUnity logger NLog). Other supplied builders include ExampleBuilder, SceneAccessBuilder and LayerAccessBuilder.
Every facet of ScriptBuilder can be configured via the intuitive and comprehensive Unity editor GUI. The GUI tracks all generated scripts so they can be updated or overwritten via the Editor GUI or file context menu. In addition a builder can be set to automatically regenerate its script whenever an update is available (i.e. Animator changes). A configurable template exists to give you control of how the members of your generated script are formatted and organized. Custom builders can also be shared using the Share Builders forum.
Any C# file you create in a deterministic way is an opportunity to allow ScriptBuilder to take over.
Features:
-Script generation/management is handled by a comprehensive Unity Editor GUI.
-Included Animator Builder creates an indispensable animator access file.
-Included Skeleton Builder Builder creates a starting point for a custom builder.
-Included Skeleton Script Builder yields an alternative starting C# script.
-Intuitive APIs to build custom builders.
-Comprehensive API reference manual.
-Public builder variables are adjustable from ScriptBuilder GUI.
-Regenerate existing script from GUI or project view context menu.
-Builders can automatically regenerate a script whenever update is available.
-Regenerated scripts can update or overwrite previous script.
-Use GUI preview button to view potential updates to a previously generated script.
-The GUI provides a revert button to undo the last script update.
-GUI themed for light and dark skin.
-Create custom template to control format and order of class members.
-Alternative region template inserts #region sections into generated class.
-Timeless asset in that script creation will always be part of Unity.
-Support for all platforms.
-Works with AiUnity products MultipleTags, NLog, and CLog.
-Website/forum available for support.
-Forum category provided to share builders.
-Tested on .NET 3.5, 4.6, and standard.
-Full source code provided.
Version 1.1.0:
-Bug fixes and cross platform support.
Version 1.2.0:
-Support Unity 2018.1 and .NET standard