|
|
|
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
private T GetDataFromListViewItem<T>(List<object> enumberable) where T : class |
|
|
|
private T GetDataFromListViewItem<T>(List<object> enumberable) where T : ScriptableObject |
|
|
|
{ |
|
|
|
T data = default; |
|
|
|
foreach (var item in enumberable) |
|
|
|
|
|
|
parent.Add(dialogueVE); |
|
|
|
} |
|
|
|
|
|
|
|
private void FindAllSOsInTargetFolder<T>(Object target, out T[] foundSOs) where T : Object |
|
|
|
private void FindAllSOsInTargetFolder<T>(Object target, out T[] foundSOs) where T : ScriptableObject |
|
|
|
{ |
|
|
|
var guids = AssetDatabase.FindAssets($"t:{typeof(T)}", new[] {Path.GetDirectoryName(AssetDatabase.GetAssetPath(target))}); |
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private void FindAllSOByType<T>(out T[] foundSOs) where T : Object //bug: if I wrote "ScriptableObject", it doesn't work.
|
|
|
|
private void FindAllSOByType<T>(out T[] foundSOs) where T : ScriptableObject |
|
|
|
{ |
|
|
|
var guids = AssetDatabase.FindAssets($"t:{typeof(T)}"); |
|
|
|
|
|
|
|