set
Sets a component as the specified type. If a component of the same type already exists, it will be replaced.
Parameters
T
The generic Component type.
componentType
The type of component to set.
component
The component to set as the specified type.
Sets a component of the specified type. If a component of the same type already exists, it will be replaced.
Parameters
T
The generic Component type.
component
The component to set of the specified type.
Sets multiple components. If the array contains components of the same type, the last one in the array will replace the previous ones.
Parameters
components
The component collection to set.