💻Scripts

What Code is doing the Sorting?

Each script that sorts is located in Assets/CharacterEnhancementToolkit/Editor by the pack it sorts e.g., SortPolygonWar sorts Polygon War Pack. Within each of these scripts, is a resources.LoadAll that iterates over all gameobject and then specifically sorts based upon prefab name into specific folders.

KeyboardButtonChange.cs - Z and C to randomize

The keyboard Button Change script allows you to use Z to randomly change the character and C to randomly change the facial features. If you don't need this capability, you can disable it on the AdultToonCreationManager object. Note: This capability can interfere with saving the prefab using a 'z' or a 'c' in the prefab name.

Load Adult Prefabs

This script loads and contains the Lists of all gameobjects of interest. If you press play and look, you will see all the pieces in each list. So therefore, you can access these lists as they are public. The boolean guyBool is used to to load the Males first

Add Animator

Attachment Points

Change Character

Change Equipment

Change Face

Target Bones

Swap Panels

Camera Movement

Save Adult PRefab

Last updated