This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* https://gist.github.com/johnsoncodehk/6da46453ce2f870b6f87f431bb267b9c | |
*/ | |
using UnityEngine; | |
public static class CloneExtension { | |
public static GameObject Clone (this GameObject gameObject) { | |
GameObject newGameObject = Object.Instantiate (gameObject); |
NewerOlder