ComponentExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extensions methods for the Unity Component class. This also includes some component-related extensions for the GameObject class.
public ref class ComponentExtensions abstract sealed
public static class ComponentExtensions
type ComponentExtensions = class
Public Module ComponentExtensions
- Inheritance
-
ComponentExtensions
Methods
EnsureComponent(GameObject, Type) |
Ensure that a component of type exists on the game object. If it doesn't exist, creates it. |
EnsureComponent<T>(Component) |
Ensure that a component of type |
EnsureComponent<T>(GameObject) |
Ensure that a component of type |
FindAncestorComponent<T>(Component, Boolean) |
Find the first component of type |