public List <GameObject> GetSceneObjectsExceptPlacementGuide() { List <GameObject> sceneObjects = GetSceneObjects(); if (ObjectPlacementGuide.ExistsInScene) { sceneObjects.RemoveAll(item => ObjectPlacementGuide.Equals(item) || ObjectPlacementGuide.ContainsChild(item.transform)); } return(sceneObjects); }
public List <GameObject> GetImmediateChildrenExcludingPlacementGuide() { List <GameObject> immediateChildren = gameObject.GetImmediateChildren(); if (ObjectPlacementGuide.ExistsInScene) { immediateChildren.RemoveAll(item => ObjectPlacementGuide.Equals(item) || ObjectPlacementGuide.ContainsChild(item.transform)); } return(immediateChildren); }
public static bool IsGameObjectPartOfPlacementGuideHierarchy(GameObject gameObject) { return(ObjectPlacementGuide.ExistsInScene && (ObjectPlacementGuide.Equals(gameObject) || ObjectPlacementGuide.ContainsChild(gameObject.transform))); }