|
static void | StripComponents (this Component c, params Type[] toKeep) |
|
static GameObject | AddChildGameObject (this Component c, string name) |
|
static T | AddChildGameObject< T > (this Component c, string name) |
|
static T | DuplicateGameObject< T > (this Component source, Transform newParent, bool keepPrefabConnection=false) |
| Duplicates the GameObject of a component, returning the component More...
|
|
static Component | DuplicateGameObject (this Component source, Transform newParent, bool keepPrefabConnection=false) |
| Duplicates the GameObject of a component, returning the component More...
|
|
◆ AddChildGameObject()
static GameObject Megapop.MegaCore.ComponentExt.AddChildGameObject |
( |
this Component |
c, |
|
|
string |
name |
|
) |
| |
|
inlinestatic |
◆ AddChildGameObject< T >()
◆ DuplicateGameObject()
static Component Megapop.MegaCore.ComponentExt.DuplicateGameObject |
( |
this Component |
source, |
|
|
Transform |
newParent, |
|
|
bool |
keepPrefabConnection = false |
|
) |
| |
|
inlinestatic |
Duplicates the GameObject of a component, returning the component
- Returns
- the component from the cloned GameObject
◆ DuplicateGameObject< T >()
Duplicates the GameObject of a component, returning the component
- Returns
- the component from the cloned GameObject
◆ StripComponents()
static void Megapop.MegaCore.ComponentExt.StripComponents |
( |
this Component |
c, |
|
|
params Type[] |
toKeep |
|
) |
| |
|
inlinestatic |
The documentation for this class was generated from the following file: