Exemplo n.º 1
0
        Bounds OnGetFrameBounds()
        {
            AABB aabb = SubSceneInspectorUtility.GetActiveWorldMinMax(World.DefaultGameObjectInjectionWorld, targets);

            return(new Bounds(aabb.Center, aabb.Size));
        }
Exemplo n.º 2
0
 // 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));
 }