Hi Harald,
Is there a utility to check if ALL skletondata in the project are valild and functional? And for those that are not print graceful message in Console?
Thank you, Marek.
Found my own code. :-)
public static void CheckAllSpineAssetsForCompatibility()
{
var guids = AssetDatabase.FindAssets("t:TextAsset");
foreach(var guid in guids)
{
var p = AssetDatabase.GUIDToAssetPath(guid);
var ta = AssetDatabase.LoadAssetAtPath<TextAsset>(p);
if(AssetUtility.IsSpineData(ta, out var compatibilityProblem))
{
if (compatibilityProblem != null) Debug.LogError(p + " " + compatibilityProblem.DescriptionString(), ta);
}
}
}