squash commits

This commit is contained in:
2025-01-07 18:54:46 +02:00
parent 855639487b
commit 62c0a21987
3632 changed files with 708443 additions and 999 deletions
@@ -0,0 +1,33 @@
using UnityEngine;
using UMA.CharacterSystem;
using UnityEditor.Search;
public static class UMAIndexers
{
[CustomObjectIndexer(typeof(UMAWardrobeRecipe))]
internal static void UMAWardrobeIndexer(CustomObjectIndexerTarget context, ObjectIndexer indexer)
{
var recipe = context.target as UMAWardrobeRecipe;
if (recipe == null)
{
Debug.Log("Not indexing file: " + context.target.name);
return;
}
foreach (var raceName in recipe.compatibleRaces)
{
Debug.Log("Indexing file: " + context.target.name);
Debug.Log("Race is " + raceName);
indexer.AddProperty("race", raceName, context.documentIndex);
}
/*
var wardrobeRecipes = UMAAssetIndexer.GetAssets<UMAWardrobeRecipe>();
foreach (var recipe in wardrobeRecipes)
{
context.AddObject(recipe.name, recipe, "Wardrobe Recipe");
}*/
}
}
@@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: 24ee930a13aa25f47b912e46aa662d2a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 35611
packageName: UMA 2
packageVersion: 2.13
assetPath: Assets/UMA/Core/Editor/CustomIndexers/UMAIndexers.cs
uploadId: 679826