Exemple #1
0
        ///<inheritdoc />
        public override List <SerializedProperty> GetPropertyOrder(IEnumerable <SerializedProperty> properties)
        {
            var serializedProperties = properties.ToList();
            var list = serializedProperties.ToList();

            FoCsEditor.RemoveDefaultProperties(list);
            list.Sort((a, b) => string.Compare(a.name, b.name, StringComparison.Ordinal));
            list.InsertRange(0, FoCsEditor.GetDefaultProperties(serializedProperties.First().serializedObject));

            return(list.ToList());
        }
Exemple #2
0
        ///<inheritdoc />
        public override List <SerializedProperty> GetPropertyOrder(IEnumerable <SerializedProperty> properties)
        {
            var list = new List <SerializedProperty>();
            var serializedProperties = properties.ToList();

            foreach (var property in serializedProperties)
            {
                if (property.name.ToLower().Contains(FoCsEditor.Search.ToLower()) && !FoCsEditor.IsDefaultScriptProperty(property))
                {
                    list.Add(property);
                }
            }

            list.InsertRange(0, FoCsEditor.GetDefaultProperties(serializedProperties.First().serializedObject));

            return(list);
        }