Skip to content

Commit

Permalink
~ Small refactoring in PopulateLottieAnimations
Browse files Browse the repository at this point in the history
  • Loading branch information
gindemit committed May 6, 2023
1 parent f5cc926 commit f0e2e93
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ private void OnGUI()
{
EditorGUILayout.LabelField("Select Lottie Animations Array", EditorStyles.boldLabel);
EditorGUI.BeginChangeCheck();
lottieAnimations = EditorGUILayout.ObjectField("Lottie Animations Array", lottieAnimations, typeof(LottieAnimations), false) as LottieAnimations;
lottieAnimations = EditorGUILayout.ObjectField(
"Lottie Animations Array",
lottieAnimations,
typeof(LottieAnimations),
false) as LottieAnimations;
if (EditorGUI.EndChangeCheck())
{
serializedObject = new SerializedObject(lottieAnimations);
Expand All @@ -56,10 +60,12 @@ private void OnGUI()
}
else
{
EditorUtility.DisplayDialog("Error", "Please select a folder inside of Streaming Assets current projects folder folder", "OK");
EditorUtility.DisplayDialog(
"Error",
"Please select a folder inside of Streaming Assets current projects folder folder",
"OK");
}
}

if (GUILayout.Button("Populate Lottie Animations"))
{
PopulateLottieAnimations();
Expand Down

0 comments on commit f0e2e93

Please sign in to comment.