Class ComponentUtility
  
  
  
  
    Inheritance
    
    ComponentUtility
   
  
  
  Assembly: UnityEditor.dll
  Syntax
  
    public sealed class ComponentUtility
   
  Methods
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  CopyComponent(Component)
  
  
  Declaration
  
    public static bool CopyComponent(Component component)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  DestroyComponentsMatching(GameObject, ComponentUtility.IsDesiredComponent)
  
  
  Declaration
  
    public static void DestroyComponentsMatching(GameObject dst, ComponentUtility.IsDesiredComponent componentFilter)
   
  Parameters
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  MoveComponentDown(Component)
  
  
  Declaration
  
    public static bool MoveComponentDown(Component component)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  MoveComponentUp(Component)
  
  
  Declaration
  
    public static bool MoveComponentUp(Component component)
   
  Parameters
  
  Returns
  
  
  
  
  PasteComponentAsNew(GameObject)
  
  
  Declaration
  
    public static bool PasteComponentAsNew(GameObject go)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  PasteComponentValues(Component)
  
  
  Declaration
  
    public static bool PasteComponentValues(Component component)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  ReplaceComponentsIfDifferent(GameObject, GameObject, ComponentUtility.IsDesiredComponent)
  
  
  Declaration
  
    public static void ReplaceComponentsIfDifferent(GameObject src, GameObject dst, ComponentUtility.IsDesiredComponent componentFilter)
   
  Parameters
  
  Extension Methods