1using System.Collections;
2using System.Collections.Generic;
9 #region Static Instance
23 void CopyComponent<T>(T original) where T :
Component
25 System.Type type = original.GetType();
26 Component copy = original.gameObject.AddComponent(type);
27 System.Reflection.FieldInfo[] fields = type.GetFields();
28 foreach (System.Reflection.FieldInfo field in fields)
30 field.SetValue(copy, field.GetValue(original));
UnityEngine.Component Component
GameObject ModelEditorCanvas
void SwitchToModelEditor()
static CanvasManager instance