ScriptBuilder Tutorial (SkeletonBuilder) - Automatically generate any Unity script

ScriptBuilder Tutorial (SkeletonBuilder) - Automatically generate any Unity script

AiUnity

7 лет назад

105 Просмотров

This tutorial covers ScriptBuilder custom skeleton builders which produce various types of starting Unity scripts. A builder can also expose editor properties to control script generation. Skeleton builders can be configured to run from the Unity project view context menu. ScriptBuilder is available on the Unity3d asset store (http://u3d.as/CXq).
ScriptBuilder overview:
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, 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 (ie. IsIdleState(), SetSpeed(), and UpperBodyLayer.CurrentStateName()).

TagAccessBuilder creates a script that provides type safe access to the Unity Tags, and is design to work with AiUnity MultipleTags (https://www.assetstore.unity3d.com/#!/content/95906 - Enables multiple tags on a gameObject). The SkeletonBuilder creates a basic starting script and is easily altered for tasks like instantiating the insanely powerful AiUnity NLog (https://www.assetstore.unity3d.com/#!/content/78220) logger. 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. 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 (https://forum.aiunity.com/?forum=573668).

Any C# file you create in a deterministic way is an opportunity to allow ScriptBuilder to take over.

Resources:
[Unity3d] Unity asset store (ScriptBuilder): https://www.assetstore.unity3d.com/#!/content/75162
[Website] AiUnity (Unity3d products): http://aiunity.com
[Forum] AiUnity support: https://forum.aiunity.com
[Forum] Share custom builders (ScriptBuilder): https://forum.aiunity.com/?forum=573668
[YouTube] Playlist (ScriptBuilder): https://www.youtube.com/playlist?list=PLxCsEzL_TroQnyAZvD1vBhmLOsq71-Cbv
[YouTube] AiUnity subscribe: https://www.youtube.com/channel/UChdaqIXHKybOfNlU9VuMh_Q?sub_confirmation=1
[YouTube] AiUnity story: https://www.youtube.com/watch?v=U29J5nvDdEU

Тэги:

#ai #aiunity #api #auto #automatically #beginners #boiler_plate #builder #c# #context_menu #copy_script #create #create_script #creator #csharp #custom #customize #duplicate_script #editor #example #examples #environment #gameobject #generate #generate_script #generation #generic #how_to #how_to_create_script #script #script_tutorial #scripting #scripting_tutorial #skeleton #skeleton_script #starting #starting_script #template #tutorial #unity #unity3d #unity_2017 #2d #3d
Ссылки и html тэги не поддерживаются


Комментарии: