Megadocs 0.0.1
All of megapop's internal libraries
Megapop.MegaCore.ComponentExt Class Reference

Static Public Member Functions

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...
 

Member Function Documentation

◆ AddChildGameObject()

static GameObject Megapop.MegaCore.ComponentExt.AddChildGameObject ( this Component  c,
string  name 
)
inlinestatic

◆ AddChildGameObject< T >()

static T Megapop.MegaCore.ComponentExt.AddChildGameObject< T > ( this Component  c,
string  name 
)
inlinestatic
Type Constraints
T :Component 

◆ 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 >()

static T Megapop.MegaCore.ComponentExt.DuplicateGameObject< T > ( 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
Type Constraints
T :Component 

◆ 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: