Tag list empty

Hello.

I started using Unity 5 and decided to start with the “Roll a ball” project and I seem to have run into a problem with the tag list. In the video there is the “size” and “element” options already for the PickUp objects but I don’t have anything. Thank you

Hello. Which video is it in the series, and what part in the video does the problem happen?

In the 6th part “collecting and counting” 7 minutes mark. I click the prefab “PickUp” and then the tag icon and the tag list is empty.

You went to add tag, then clicked on tags and there’s no size or element? I’m not sure whats going on. Post a screenshot of the tags window. It might be an editor bug.

I will post it this afternoon.

PlayerController script

using UnityEngine;
using System.Collections;

public class PlayerController : MonoBehaviour
{

public float speed;

void FixedUpdate ()
{
float moveHorizontal = Input.GetAxis(“Horizontal”);
float moveVertical = Input.GetAxis (“Vertical”);

Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical);

GetComponent().AddForce(movement * speed * Time.deltaTime);
}

void OnTriggerEnter(Collider other)
{
if (other.gameObject.tag == “PickUp”)
{
other.gameObject.SetActive(false);
}
}
}

It looks like a newer version of unity, from the one in the tutorial. Click on plus sign on the right there next to tags.

It allows me to make a new tab, but not like in the video like “size” and “element 0”. 2001013--129282--bandicam 2015-03-05 20-47-51-352.jpg
The “Tag 0” can’t be changed.

I figured it out, I was juts confused af because the version difference on the video. Thanks, I’ll be back.

Its the same thing. It only looks different because its a newer version of Unity. It should work as it does in the video. Size just represents the amount of tags in the list. Element 0 has been renamed to tag 0.

Edit Ok looks like you figured it out :).

1 Like