[Add] Asset Validator
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user