Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 BilboStabbins · Oct 06, 2014 at 02:37 PM · spritenguisprite sheets

How to add sprites from a sprite sheet to an NGUI atlas

Hi,

I have a sprite sheet with various elements and have used Unity's Sprite Editor to splice them. I would like to be able to add these individual sprites to an NGUI atlas to maintain consistency in the project (use NGUI's UISprite rather than using Unity Sprite Renderer to display these textures, etc.).

I was wondering if there is a way I can do this, possibly using third party software to splice/extract the textures from the sprite sheet.

Has anyone done anything similar?

Thanks in advance.

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
1

Answer by Anxo · Oct 06, 2014 at 03:35 PM

You could o/c take it into photoshop and cut it and add it to your atlas but that would be very inconvenient. If you make sure you have the latest version of NGUI, you will be able to use unity sprites in NGUI just not via atlas., Go to your top NGUI menu you select, create, Unity 2D Sprite, this does not behave like a Unity Sprite renderer but more like an NGUI element, allowing you to go pixel perfect and use all the widgets associated with NGUI but with a Unity Sprite. Have not even used the NGUI atlas in a long time because of this feature.

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 BilboStabbins · Oct 06, 2014 at 04:40 PM 0
Share

Thanks Anxo, that's working great!

Do you know how this work if say I have a font (characters as sprites) which are also part of the sprite sheet? These have been splice too but is there a way to convert these into a working font.

Thanks

avatar image Anxo · Oct 06, 2014 at 06:13 PM 0
Share

Fonts are different, Aron (the guy who made NGUI) has a video on importing custom fonts to work with NGUI, it works really well but requires the use of a 3rd party free software that arranges and maps the fonts.

avatar image Lazybones94 · Jul 04, 2016 at 09:01 AM 0
Share

and what about 2.7.0 NGUI?

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

30 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

Related Questions

Instantiate always at the same position (0,0,0) 1 Answer

Sprite sheet not visualized correctly 0 Answers

NGUI UISpriteAnimation - how to animate a set of sprites with different dimensions 0 Answers

Shader renders sprite as black in game view despite scene view appearing correctly. 0 Answers

What is the most Unity-compatible way to import sprite animations? 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