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 /
avatar image
0
Question by xxv1rexx · Jul 26, 2019 at 06:59 PM · spriteimagephotoshop

Cant change color of an image with custom sprite

I tried to make custom cross-hair but when i set texture type as 2D and UI and then put the sprite of the cross-hair in UI image I couldn't change the color of it even in inspector. I cant even change the color as sprite. Its png file...

Thank you for answer.

Comment
Add comment · Show 7
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 xxmariofer · Jul 26, 2019 at 07:41 PM 0
Share

can you share screenshots? its hard to imagiune whats happening, t¡you cant tint the image with the color property? just in case, you know that the texture doest change just the image component gets tint

avatar image xxv1rexx xxmariofer · Jul 27, 2019 at 09:31 AM 0
Share

hey, I made a clock in photoshop and then imported it as png file, then I set it to sprite and now I can't change the color of it in any way. I wonder how to do it?

avatar image xxmariofer xxv1rexx · Jul 27, 2019 at 11:08 AM 0
Share

For changing the color of the Sprite you need to change It using Photoshop. Un Unity you can use the Color property of each SpriteRenderer component that Will tint the speciric object but not change the texture

Show more comments
avatar image leminh_2014 · Jul 28, 2019 at 12:04 PM 0
Share

which version of unity do u use? are you making game 2d or 3d? that is a UI object or gameobject

2 Replies

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

Answer by xxv1rexx · Jul 28, 2019 at 12:03 PM

It's working now. I just needed to make the image white. Now I can change the color of it in unity... Thank you all for your help :)

Comment
Add comment · Show 3 · 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 leminh_2014 · Jul 28, 2019 at 12:05 PM 0
Share

to white or none color?

avatar image xxv1rexx leminh_2014 · Jul 28, 2019 at 12:06 PM 0
Share

from black crosshair to white crosshair in photoshop

avatar image drewjosh · Nov 17, 2020 at 01:21 PM 0
Share

Super awesome thanks! I had a black icon and wondered for so long why it didn't work! Rewarded! ;)

avatar image
0

Answer by SirPaddow · Jul 27, 2019 at 10:24 PM

You should share code or screenshots, but I'll try to guess the problem:

If you're changing the sprite through script, you should use overrideSprite rather than sprite

 // buggy
 image.sprite = mySprite;
 
 // should work
 image.overrideSprite = mySprite;
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 xxv1rexx · Jul 28, 2019 at 11:44 AM 0
Share

No, it's just that when I made an image in photoshop and then set it to sprite I couldn't edit the color of it in unity.

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

145 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 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 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 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Changing a UI image sprite in scripts results in a black texture 0 Answers

How can I put the single pieces of a sliced Sprite into an array? 0 Answers

Sprite Becoming Blurry 2 Answers

Unable to drag image from Assets folder to Sprite: None under Sprite Renderer. 0 Answers

How do I change the import settings when using sprite.create with a WWW.texture from a png image. 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