public static void StripForPreview() { //Show existing window instance. If one doesn't exist, make one. GameObject root = BZWToolsWindow.GetRoot(); DeleteBZWComponentsOnChildren(root); }
public static GameObject AddMapObject <T>(GameObject gb, BZFlag.Map.Elements.BasicObject obj) where T : BZWBasicObject { AddToRoot(BZWToolsWindow.GetRoot(), gb); T bzw = gb.AddComponent <T>(); string name = obj.Name; if (name == string.Empty) { name = obj.ObjectType + "_" + obj.GUID; } gb.name = name; bzw.Setup(obj); return(gb); }
public static GameObject NewMapObject(GameObject obj) { AddToRoot(BZWToolsWindow.GetRoot(), obj); return(obj); }