// Animancer // https://kybernetik.com.au/animancer // Copyright 2018-2024 Kybernetik // #if UNITY_EDITOR using UnityEngine; namespace Animancer.Editor.TransitionLibraries { /// [Editor-Only] /// Sorting algorithms for . /// /// https://kybernetik.com.au/animancer/api/Animancer.Editor.TransitionLibraries/TransitionSortMode public enum TransitionSortMode { /************************************************************************************************************************/ /// Manual sorting. Custom, /// Based on the transition file names. Name, /// Based on the transition file paths. Path, /// Based on the transition types then file names. TypeThenName, /// Based on the transition types then file paths. TypeThenPath, /************************************************************************************************************************/ } /// https://kybernetik.com.au/animancer/api/Animancer.Editor.TransitionLibraries/TransitionLibraryEditorData public partial class TransitionLibraryEditorData { /************************************************************************************************************************/ [SerializeField] private TransitionSortMode _TransitionSortMode; /// [] The algorithm to use for sorting transitions. public TransitionSortMode TransitionSortMode { get => _TransitionSortMode; set { if (_TransitionSortMode == value) return; _TransitionSortMode = value; if (Library != null) TransitionLibrarySort.Sort(Library); } } /************************************************************************************************************************/ } } #endif