Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
登録されていないタグはセットできるか?
string tagName = "TagImport";
void Start(){
GameObject prefab = (GameObject) Resources.Load("Prefabs/TagTest/TagCube");
Instantiate(prefab, Vector3.zero, 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.