Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by Evilfairy · Sep 25, 2015 at 04:40 AM · sprite2d gamespriterenderer

How do I make a Sprite display in a 2d game?

Hi (:

I'm new to Unity and so far have added 2 scenes and a button on both to move between them with LoadLevel. I managed to add a text GO and have it updating from a script and now I wish to draw sprites on the screen.

I created a simple 256x256 png in photoshop (http://i.imgur.com/MzSusez.png) for the sake of testing and added it to the scene here: http://i.imgur.com/tBXl1GF.png

However, when I start the game I cannot get it to show up at all, and when I add it to the playfield it's absolutely tiny (the scale of it in that image is x*30.4 and y*34.67) and when I actually try to start the game I simply cannot get it to show up at all: http://i.imgur.com/ezJ3S7q.png

I have tried:

  • Moving it closer to the camera on the z-axis by moving to 3d view

  • Moving it to various places on the hierarchy (on the left)

  • Re-adding it

  • Changing the layer the sprite is on

So far I've been really enjoying Unity however I simply cannot get this to work and every tutorial I watch seems to gloss over it as though the Sprite should just appear in the playfield and be usable automatically :(

Any help would be appreciated, thank you!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by Umresh · Sep 25, 2015 at 05:45 AM

I guess you have placed your sprite in the canvas Render space. Place your sprite in camera renderer region. You have placed sprite like this alt text

You have to place sprite like this alt text


screen-shot-2015-09-25-at-111251-am.png (46.0 kB)
screen-shot-2015-09-25-at-111230-am.png (74.6 kB)
Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Evilfairy · Sep 25, 2015 at 06:04 AM 0
Share

This was the problem, thank you so much!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

34 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

MissingFieldException: UnityEngine.SpriteRenderer.sprite 0 Answers

Get sprite size and position 0 Answers

the image set on the inspector is not displayed. I am a beginner 2 Answers

Sprites pixel colliding with 2d collider 0 Answers

Sprite Orbiting Sprite with Mouse 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges