24 lines
511 B
C#
24 lines
511 B
C#
#if UNITY_EDITOR
|
|
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace WingmanInspector {
|
|
|
|
public class WingmanClipboard {
|
|
|
|
public readonly List<WingmanComponentCopy> Copies = new();
|
|
|
|
public void CopyComponents(List<Component> components) {
|
|
if (components == null) return;
|
|
|
|
Copies.Clear();
|
|
foreach (Component component in components) {
|
|
Copies.Add(new(component));
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
#endif |