Show / Hide Table of Contents

Class ComponentUtility

Inheritance
Object
ComponentUtility
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEditorInternal
Assembly: UnityEditor.dll
Syntax
public sealed class ComponentUtility

Methods

| Improve this Doc View Source

CopyComponent(Component)

Declaration
public static bool CopyComponent(Component component)
Parameters
Type Name Description
Component component
Returns
Type Description
Boolean
| Improve this Doc View Source

DestroyComponentsMatching(GameObject, ComponentUtility.IsDesiredComponent)

Declaration
public static void DestroyComponentsMatching(GameObject dst, ComponentUtility.IsDesiredComponent componentFilter)
Parameters
Type Name Description
GameObject dst
ComponentUtility.IsDesiredComponent componentFilter
| Improve this Doc View Source

MoveComponentDown(Component)

Declaration
public static bool MoveComponentDown(Component component)
Parameters
Type Name Description
Component component
Returns
Type Description
Boolean
| Improve this Doc View Source

MoveComponentUp(Component)

Declaration
public static bool MoveComponentUp(Component component)
Parameters
Type Name Description
Component component
Returns
Type Description
Boolean

PasteComponentAsNew(GameObject)

Declaration
public static bool PasteComponentAsNew(GameObject go)
Parameters
Type Name Description
GameObject go
Returns
Type Description
Boolean
| Improve this Doc View Source

PasteComponentValues(Component)

Declaration
public static bool PasteComponentValues(Component component)
Parameters
Type Name Description
Component component
Returns
Type Description
Boolean
| Improve this Doc View Source

ReplaceComponentsIfDifferent(GameObject, GameObject, ComponentUtility.IsDesiredComponent)

Declaration
public static void ReplaceComponentsIfDifferent(GameObject src, GameObject dst, ComponentUtility.IsDesiredComponent componentFilter)
Parameters
Type Name Description
GameObject src
GameObject dst
ComponentUtility.IsDesiredComponent componentFilter

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX