Show / Hide Table of Contents

Method AddComponentCopy

| Edit this page View Source

AddComponentCopy<T>(GameObject, T)

Adds a new copy of the provided component to a gameObject
Declaration
public static Component AddComponentCopy<T>(this GameObject gameObject, T duplicate) where T : Component
Parameters
Type Name Description
GameObject gameObject
T duplicate
Returns
Type Description
Component
Type Parameters
Name Description
T
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾