Пример #1
0
        public static bool GetDisplayAssetImage(BaseIcon icon, IUExport o, ref string assetName)
        {
            string path          = string.Empty;
            bool   displayExists = true;

            if (o.TryGetValue("DisplayAssetPath", out var d) && d is StructProperty da && da.Value is FSoftObjectPath daOut)
            {
                path = daOut.AssetPathName.String;
            }
Пример #2
0
 public static T GetExport <T>(this IUExport export, params string[] names)
 {
     foreach (string name in names)
     {
         if (export != null && export.TryGetValue(name, out var obj) && obj is T)
         {
             return((T)obj);
         }
     }
     return(default);