Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Tag list empty

Discussion in 'Getting Started' started by juhoartturi, Mar 4, 2015.

  1. juhoartturi

    juhoartturi

    Joined:
    Mar 4, 2015
    Posts:
    6
    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
     
    Last edited: Mar 4, 2015
  2. roger0

    roger0

    Joined:
    Feb 3, 2012
    Posts:
    1,208
    Hello. Which video is it in the series, and what part in the video does the problem happen?
     
  3. juhoartturi

    juhoartturi

    Joined:
    Mar 4, 2015
    Posts:
    6
    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.
     
  4. roger0

    roger0

    Joined:
    Feb 3, 2012
    Posts:
    1,208
    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.
     
  5. juhoartturi

    juhoartturi

    Joined:
    Mar 4, 2015
    Posts:
    6
    I will post it this afternoon.
     
  6. juhoartturi

    juhoartturi

    Joined:
    Mar 4, 2015
    Posts:
    6
    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<Rigidbody>().AddForce(movement * speed * Time.deltaTime);
    }

    void OnTriggerEnter(Collider other)
    {
    if (other.gameObject.tag == "PickUp")
    {
    other.gameObject.SetActive(false);
    }
    }
    }
    bandicam 2015-03-05 13-28-03-973.jpg
     
  7. roger0

    roger0

    Joined:
    Feb 3, 2012
    Posts:
    1,208
    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.
     
  8. juhoartturi

    juhoartturi

    Joined:
    Mar 4, 2015
    Posts:
    6
    It allows me to make a new tab, but not like in the video like "size" and "element 0". bandicam 2015-03-05 20-47-51-352.jpg
    The "Tag 0" can't be changed.
     
  9. juhoartturi

    juhoartturi

    Joined:
    Mar 4, 2015
    Posts:
    6
    I figured it out, I was juts confused af because the version difference on the video. Thanks, I'll be back.
     
  10. roger0

    roger0

    Joined:
    Feb 3, 2012
    Posts:
    1,208
    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 :).
     
    juhoartturi likes this.