Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

2D Sprites in 3D environment

Discussion in 'Getting Started' started by Goodeddie, Aug 4, 2016.

  1. Goodeddie

    Goodeddie

    Joined:
    Aug 3, 2016
    Posts:
    79
    Hello.

    How do I add a 2D sprite with capsule collision to my 3D environment?
     
  2. Goodeddie

    Goodeddie

    Joined:
    Aug 3, 2016
    Posts:
    79
    After playing around, I created an Asset with a Texture type of Sprite and then I dragged the Asset into the screen.
     
  3. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,833
    Yep, that'll do it. Unity creates it all for you. If you want to do it manually, then just (1) create an empty GameObject; (2) add a SpriteRenderer component; and (3) assign a Sprite texture to the sprite property of that SpriteRenderer.
     
  4. Goodeddie

    Goodeddie

    Joined:
    Aug 3, 2016
    Posts:
    79
    Do you need a Sprite Renderer component to use display animations from the Animator?
     
  5. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,833
    If they're sprite animations, yes. If they're skeletal animations, then you instead need something like a SkinnedMeshRenderer (hooked up to the skeleton you're animating).