public static object Copy(IEnumerable <Controller> elements, Rect bounds) { if (s_Instance == null) { s_Instance = new VFXCopy(); } return(s_Instance.CreateCopy(elements, bounds)); }
public static string SerializeElements(IEnumerable <Controller> elements, Rect bounds) { if (s_Instance == null) { s_Instance = new VFXCopy(); } var serializableGraph = s_Instance.CreateCopy(elements, bounds) as SerializableGraph; return(JsonUtility.ToJson(serializableGraph)); }