summaryrefslogtreecommitdiff
path: root/VRCSDK3Worlds/Assets/MeshBaker/Editor/MB_ReplacePrefabsSettings.cs
blob: 721a17ef0e0ce72e4ef9421049b69349caf9614b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
    }
}