[Add] Asset Validator

This commit is contained in:
2026-04-08 13:18:26 +07:00
parent 211c975889
commit efce7c458d
5 changed files with 211 additions and 13 deletions
@@ -199,18 +199,19 @@ namespace InfiniteWorld.VoxelWorld
for (int collectionIndex = 0; collectionIndex < config.placementCollections.Count; collectionIndex++)
{
WorldPrefabCollection collection = config.placementCollections[collectionIndex];
if (collection == null)
if (WorldPlacementValidation.TryGetCollectionBlockerReason(collection, out _))
{
continue;
}
List<WorldPrefabEntryRuntime> entries = new List<WorldPrefabEntryRuntime>();
HashSet<string> usedIds = new HashSet<string>();
if (collection.entries != null)
{
for (int entryIndex = 0; entryIndex < collection.entries.Count; entryIndex++)
{
WorldPrefabEntry entry = collection.entries[entryIndex];
if (entry == null)
if (WorldPlacementValidation.TryGetEntryBlockerReason(entry, usedIds, out _))
{
continue;
}