Ejemplo n.º 1
0
 public static object Copy(IEnumerable <Controller> elements, Rect bounds)
 {
     if (s_Instance == null)
     {
         s_Instance = new VFXCopy();
     }
     return(s_Instance.CreateCopy(elements, bounds));
 }
Ejemplo n.º 2
0
        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));
        }