You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
866 B
32 lines
866 B
using System.Collections.Generic;
|
|
using Leopotam.Ecs;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace Asset_Cleaner {
|
|
class SearchResultGui : IEcsAutoReset {
|
|
public SerializedObject SerializedObject;
|
|
public List<PropertyData> Properties;
|
|
public GUIContent Label;
|
|
public string TransformPath;
|
|
|
|
public void Reset() {
|
|
SerializedObject?.Dispose();
|
|
SerializedObject = default;
|
|
|
|
if (Properties != default)
|
|
foreach (var propertyData in Properties) {
|
|
propertyData.Property.Dispose();
|
|
}
|
|
|
|
Properties = default;
|
|
Label = default;
|
|
TransformPath = default;
|
|
}
|
|
|
|
public class PropertyData {
|
|
public SerializedProperty Property;
|
|
public GUIContent Content;
|
|
}
|
|
}
|
|
}
|