Files
PotionMaker/Assets/MeshBaker/Editor/MB_ReplacePrefabsSettings.cs
2026-03-27 16:34:08 +09:00

27 lines
755 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using DigitalOpus.MB.Core;
namespace DigitalOpus.MB.MBEditor
{
[System.Serializable]
public class MB_ReplacePrefabsSettings : ScriptableObject
{
[System.Serializable]
public class PrefabPair
{
public bool enabled = true;
public GameObject srcPrefab;
public GameObject targPrefab;
public List<MB_ReplacePrefabsInScene.Error> objsWithErrors = new List<MB_ReplacePrefabsInScene.Error>();
}
public PrefabPair[] prefabsToSwitch = new PrefabPair[0];
public bool reverseSrcAndTarg;
public bool enforceSrcAndTargHaveSameStructure = true;
}
}