Example #1
0
 public void ShowHirerachyDbgAction()
 {
     HostedDebugLog.Warning(this, "Part's model hierarchy:");
     DebugGui.DumpHierarchy(partModelTransform, partModelTransform);
     if (targetTransform != null)
     {
         HostedDebugLog.Warning(this, "Model hierarchy at target:");
         DebugGui.DumpHierarchy(targetTransform.root, targetTransform);
     }
 }
Example #2
0
 public void ShowHirerachyDbgAction()
 {
     if (FlightGlobals.ActiveVessel.isEVA)
     {
         var p = FlightGlobals.ActiveVessel.rootPart;
         DebugEx.Warning("Objects hierarchy in: {0}", p);
         DebugGui.DumpHierarchy(p.transform, p.transform);
     }
     else
     {
         DebugEx.Warning("The active vessel is not EVA!");
     }
 }