◆ DuplicateGameObject()
static GameObject Megapop.MegaCore.GameObjectExt.DuplicateGameObject |
( |
this GameObject |
source, |
|
|
Transform |
newParent, |
|
|
bool |
keepPrefabReference = false |
|
) |
| |
|
inlinestatic |
Duplicates a GameObject
- Returns
- the component from the cloned GameObject
◆ GetOrAddComponent< T >()
static T Megapop.MegaCore.GameObjectExt.GetOrAddComponent< T > |
( |
this GameObject |
go | ) |
|
|
inlinestatic |
◆ SetLayerRecursively() [1/2]
static void Megapop.MegaCore.GameObjectExt.SetLayerRecursively |
( |
this GameObject |
go, |
|
|
int |
layer |
|
) |
| |
|
inlinestatic |
◆ SetLayerRecursively() [2/2]
static void Megapop.MegaCore.GameObjectExt.SetLayerRecursively |
( |
this GameObject |
go, |
|
|
string |
layer |
|
) |
| |
|
inlinestatic |
◆ StripComponents()
static void Megapop.MegaCore.GameObjectExt.StripComponents |
( |
this GameObject |
go, |
|
|
params Type[] |
toKeep |
|
) |
| |
|
inlinestatic |
The documentation for this class was generated from the following file: