58 lines
1.1 KiB
C#
58 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace PrefabEvolution
|
|
{
|
|
[Serializable]
|
|
public class PEModifications
|
|
{
|
|
[Serializable]
|
|
public class PropertyData
|
|
{
|
|
public enum PropertyMode
|
|
{
|
|
Default = 0,
|
|
Keep = 1,
|
|
Ignore = 2
|
|
}
|
|
|
|
public UnityEngine.Object Object;
|
|
|
|
public int ObjeckLink;
|
|
|
|
public string PropertyPath;
|
|
|
|
public PropertyMode Mode;
|
|
|
|
public object UserData;
|
|
}
|
|
|
|
[Serializable]
|
|
public class HierarchyData
|
|
{
|
|
public Transform child;
|
|
|
|
public Transform parent;
|
|
}
|
|
|
|
[Serializable]
|
|
public class ComponentsData
|
|
{
|
|
public Component child;
|
|
|
|
public GameObject parent;
|
|
}
|
|
|
|
public List<PropertyData> Modificated = Utils.Create<List<PropertyData>>();
|
|
|
|
public List<HierarchyData> NonPrefabObjects = Utils.Create<List<HierarchyData>>();
|
|
|
|
public List<ComponentsData> NonPrefabComponents = Utils.Create<List<ComponentsData>>();
|
|
|
|
public List<int> RemovedObjects = Utils.Create<List<int>>();
|
|
|
|
public List<HierarchyData> TransformParentChanges = Utils.Create<List<HierarchyData>>();
|
|
}
|
|
}
|