Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 /
avatar image
6
Question by thedarknomad · Aug 23, 2014 at 08:44 PM · canvasimagebackgroundpngborder

I can't see any png files as a source image

I added a png file that has an image and a transparent layer (so basically a border) to the Assets folder but I can't use it as a source image; the only thing I can do is add it to a material and apply the material to an object, the only problem is I am trying to texturize an UI Image object.

Unfortunately, I can't see the source texture and only applying the material without a source image doesn't render anything :(

Can anyone give me some pointers on how to treat this aspect ? I'd use a jpg file but I doubt the transparency will hold out as well.

For short, what I want is a camera canvas that has 2 images applied: a background and a border (with a transparent center). The hierarchy looks like this:

  • Canvas
    • Panel
      • BG image (this is a JPG and I can set it as a source image)
        • Border image (this is a PNG - only found as a material)

I can't seem to get it working :(

Comment
Add comment · Show 1
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 perchik · Aug 25, 2014 at 05:26 PM 0
Share

Is the PNG set as a sprite(2D and UI) Texture in its import settings?

4 Replies

· Add your reply
  • Sort: 
avatar image
24

Answer by Ali_Jaffer · Sep 14, 2014 at 08:30 PM

Select that image from project window >> go into inspector window and choose texture type from drop down menu i-e Sprite(2D or UI) apply those settings

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 CreatorHun · Apr 19, 2017 at 12:20 AM 0
Share

And choose "Sprite $$anonymous$$ode" -> single,

avatar image
0

Answer by Kirbyrawr · Aug 24, 2014 at 03:08 AM

Without any more information we can't do a lot but i will leave my set up here, maybe it helps you alt text

On the left inspector you have the Panel - Left Menu and on the right inspector you have the Image - Border

Comment
Add comment · Show 2 · 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 Kaz_Yamof · Aug 25, 2014 at 05:17 PM 0
Share

Same problem here... Any solution?

avatar image Kaz_Yamof · Aug 25, 2014 at 05:43 PM 1
Share

Duh! I figured out that I forgot set the image as "Sprite( 2D / uGUI)" on import panel. XD

avatar image
0

Answer by Shaq · Jun 12, 2017 at 12:14 PM

I had the same issue, I restarted Unity 5.6 and started to work

Comment
Add comment · 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
0

Answer by mitchmeyer1 · Dec 20, 2018 at 04:08 PM

For anyone having this issue and their texture was set to Sprite 2D, I had to select another, then re-select Sprite 2D and save. Not sure what happened but that worked for me!

Comment
Add comment · 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

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

28 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

Related Questions

UI slider background image 1 Answer

Can't set canvas's backgound in Unity 1 Answer

Canvas Scaler / math behind: Scale with Screen Size 3 Answers

Scrolling, repeating canvas image 0 Answers

Get buttons to scale at the same speed as canvas? 1 Answer


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