Bounds OnGetFrameBounds() { AABB aabb = SubSceneInspectorUtility.GetActiveWorldMinMax(World.DefaultGameObjectInjectionWorld, targets); return(new Bounds(aabb.Center, aabb.Size)); }
// Invoked by Unity magically for FrameSelect command. // Frames the whole sub scene in scene view bool HasFrameBounds() { return(!SubSceneInspectorUtility.GetActiveWorldMinMax(World.DefaultGameObjectInjectionWorld, targets).Equals(MinMaxAABB.Empty)); }