Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
string tagName = "TagImport";
void Start(){
GameObject prefab = (GameObject) Resources.Load("Prefabs/TagTest/TagCube");
Instantiate(prefab,, Quaternion.identity);
getByTagObj = GameObject.FindGameObjectWithTag(tagName);
rb = getByTagObj.AddComponent<Rigidbody>();
isRigidbodyAttached = true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.