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
2
Question by vickygroups · Jun 04, 2014 at 08:57 PM · error messageunity 4.5

Unity 4.5 error

My game was working before I upgraded, but I wanted to use a new 2D function. Now that's it's upgraded, I get the following:

importer.GetNPOTScale() == TextureImporter::kNPOTKeep and !hasError

Please help me figure out what this is, as I never have seen this before.

Comment
Add comment · Show 2
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 Itstame · Jun 18, 2014 at 12:09 AM 0
Share

I'm getting the same issue with NGUI. It started after I upgraded to Unity 4.5.

importer.GetNPOTScale() == TextureImporter::kNPOT$$anonymous$$eep

UnityEditor.AssetDatabase:ImportAsset(String, ImportAssetOptions) NGUIEditorTools:$$anonymous$$akeTextureAnAtlas(String, Boolean, Boolean) (at Assets/NGUI/Scripts/Editor/NGUIEditorTools.cs:492)

NGUIEditorTools:ImportTexture(String, Boolean, Boolean, Boolean) (at Assets/NGUI/Scripts/Editor/NGUIEditorTools.cs:506)

NGUIEditorTools:ImportTexture(Texture, Boolean, Boolean, Boolean) (at Assets/NGUI/Scripts/Editor/NGUIEditorTools.cs:525)

UIAtlas$$anonymous$$aker:ExtractSprites(UIAtlas, List`1) (at Assets/NGUI/Scripts/Editor/UIAtlas$$anonymous$$aker.cs:516)

UIAtlas$$anonymous$$aker:UpdateAtlas(List`1, Boolean) (at Assets/NGUI/Scripts/Editor/UIAtlas$$anonymous$$aker.cs:648)

UIAtlas$$anonymous$$aker:OnGUI() (at Assets/NGUI/Scripts/Editor/UIAtlas$$anonymous$$aker.cs:1006)

UnityEditor.DockArea:OnGUI()

avatar image almo · Dec 16, 2014 at 07:02 PM 0
Share

I am getting this with 4.6.1.

4 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by akasurreal · Jun 25, 2014 at 10:01 PM

My atlas textures were set to texture type of Sprite, and I changed to Advanced. I no longer get the error. Hope it works for others.

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 codestage · Jul 15, 2014 at 04:50 PM 1
Share

Doesn't work for me. I noticed it happens only in 2D Unity projects.

avatar image DarkMeatGames · Feb 14, 2015 at 05:56 PM 0
Share

I'm using advanced and a 3d scene, and still get the error if I set spritemode to multiple. If I then edit my sprites, and switch back to sprite mode none, the error goes away, but then I can no longer access the sprites as subassets of the texture.

avatar image
-1

Answer by vickygroups · Jun 07, 2014 at 03:46 PM

got the answer on Twitter. Hit "play" and RED error goes away. Seems like a bug.

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 Owen-Reynolds · Jun 07, 2014 at 04:08 PM 1
Share

Not really. The error was printed when Unity had trouble reading one of your textures, and it just hangs around, waiting for you to read it.

Play just happens to clear that window, but so does clicking Clear. Unity won't let you clear script errors, since you have to fix them. But, even though the message is gone, the problem with the texture is still there.

But, sometimes Unity gives a red import error, but is able to fix things anyway. Or, the problem might be with a texture you never use. NPOT means non-power of 2 (like 217 by 134.) As Jeff $$anonymous$$ writes, you could reimport each one, to see which is the problem.

avatar image
0

Answer by Jeff-Kesselman · Jun 04, 2014 at 08:57 PM

Have you tried reimporting all your assets?

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 almo · Dec 16, 2014 at 07:01 PM 0
Share

I have this error, and I just tried reimporting my assets, and the error persists.

avatar image
0

Answer by TrainWrek · Dec 21, 2014 at 02:07 PM

I was able to fix this error by changing the texture type of the created atlas to Texture.

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

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

Animations get a "NullRefrenceException" error when playing animations. 0 Answers

I'm building PacMan game by tutorial and getting error: `Property collider2D has been deprecated. Use GetComponent() instead.' But when I use GetComponent I get another error. What should I use instead? 1 Answer

Project PAUSING when I press play 1 Answer

Error Too many threads in Player Settngs 0 Answers

Error says object reference not set when it really is? 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