Randomizer New Features and minor bug fix #365
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds new features and editor UX to the DCS Randomizer.
See example scene in Examples > DynamicCharacterSystem Examples > UMA DCS Demo - Random Characters v2.
---------- Details changes -----------
UMARandomizer.cs : Added features
Refactored original UMARandomizer into UMARandomizerItems.cs and UMARandomizer.cs (Scriptable Object)
Additional Features ; Randomizer Definition, Global Shared Colors, Utilities (Copy Race Randomizer, Update DNA List)
UMARandomizerEditor.cs : Added features
Additional Features ; Randomizer Definition, Global Shared Colors, Utilities (Copy Race Randomizer, Update DNA List)
UMARandomizerItems.cs : UMARandomizer refactorisation
Refactored with all classes from UMARandomizer.cs except UMARandomizer (SO) class
RandomDNA : Added Constructor public RandomDNA(RandomDNA randomDNA)
RandomWardrobeSlot : Added a DeepCopy()
RandomAvatar : Added Copy feature ;
-> public void CopyFrom(RandomAvatar srcAvatar)
-> private static void CopyFromSrc(List src, List dest, Func<T, string> selector, Action<T, T> setter, Func<T, T> constructor)
UMARandomizerDefinitionPropertyDrawer.cs : UMARandomizer Property Drawer
UMARandomAvatarV2.cs : UMARandomAvatar Overhaul
UMARandomizerGenerationPropertyDrawer.cs : UMARandomAvatarV2 Property Drawer
GUIHelper : Refactoring and added functionalities
L94-102 : Added Static Color Class Helper
L106-146 : Added Static Style Class Helper
L147-214 : Refactored BeginHorizontal/vertical Padded/Indented
L323-336 : New Foldout bar variant usint GUIContent : FoldoutBar(bool foldout, string content, GUIContent tooltip)
L291-336 : Added FoldoutBar code summaries
L458 : ToolbarStyleHelp refactored into HelpGUI
End : Added DropAreaGUI
CharacterBaseEditor.cs : Add An error message if Race Base Slots have unassigned Material
L1684 : in OnGUI() :
if(_overlayData.asset.material == null) Debug.LogError($"Error - No material set in Overlay {_overlayData.overlayName}");
RecipeEditor.cs : Fix warnings
L56 : OnSceneDrag(SceneView view) : -> OnSceneDrag(SceneView view, int index):
Fix for : ArgumentException: method argument length mismatch System.Delegate.CreateDelegate
Failed to dispose EditorWrapper.
DynamicDNAConverterBehaviour.cs : Fix warnings
L317 and L335 : Fix 'PrefabStage.prefabAssetPath' is obsolete: 'prefabAssetPath has been deprecated. Use assetPath instead.'