public static void DestroyAllChildrenFX(this Transform root) { while (root.childCount > 0) { ObjectFX.DestroyImmediate(root.GetChild(0).gameObject); } }
public void Export(ObjectFX obj, string path) { UIObjectFX fx = (UIObjectFX)obj; string originalText = fx.OriginalText; List <int> indexList = new List <int>(); foreach (ControlObject controlObject in fx.ControlObjects) { indexList.Add(controlObject._Index); } indexList.Sort(); indexList.Reverse(); foreach (int index in indexList) { foreach (ControlObject controlObject in fx.ControlObjects) { int startIndex = controlObject._Index; if (startIndex == index) { int length = controlObject._Length; originalText = originalText.Remove(startIndex, length); originalText = originalText.Insert(startIndex, Format(controlObject)); break; } } } File.WriteAllText(path, originalText, Encoding); }
public bool IsExportable(ObjectFX obj) { return(obj is UIObjectFX); }
public void Export(ObjectFX obj, string path) { }
public bool IsExportable(ObjectFX obj) { return(true); }
private void Widget_ValueChanged(object sender, EventArgs e) { ObjectFX.OnStatusChanged(FileStatus.Changed); }
public WidgetProxy(ObjectFX obj, IHost host) : this() { Host = host; ObjectFX = obj; }