浏览代码

Update T : ScriptableObject

/main
Brett 4 年前
当前提交
cbad06cd
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 6
      UOP1_Project/Assets/Scripts/Quests/Editor/QuestEditorWindow.cs

6
UOP1_Project/Assets/Scripts/Quests/Editor/QuestEditorWindow.cs


};
}
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)}");

正在加载...
取消
保存