You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/3rd/Plugins/Smart-Inspector/Runtime/SmartInspector.Utils.Assets.cs

35 lines
984 B
C#

3 months ago
using System;
using System.Collections.Generic;
using System.Linq;
using AV.UITK;
using UnityEditor;
using UnityEngine.UIElements;
using Object = UnityEngine.Object;
namespace AV.Inspector.Runtime
{
public static partial class SmartInspector
{
#region Assets
public static StyleSheet FindStyleSheet(string name = null, string guid = null)
{
return FluentUITK.FindStyleSheet(name, guid);
}
public static IEnumerable<T> FindAssets<T>(string name = null) where T : Object
{
return FluentUITK.FindAssets<T>(name);
}
public static IEnumerable<Object> FindAssets(Type type, string name = null)
{
return FluentUITK.FindAssets<Object>(name);
}
public static T FindAsset<T>(string name = null, string guid = null) where T : Object
{
return FluentUITK.FindAsset<T>(name, guid);
}
#endregion
}
}