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 Balthatczar · Feb 03, 2014 at 07:52 PM · texture2dunity4changes

major changes in Unity3D 4x

So before i go into posting code and the underlying problem itself. I have noticed something extremely disturbing switching from Unity3D 3.5.7 to the latest 4x iteration. I'm building this puzzle game, long story short... it cuts up an image in individual tiles blabla using getpixel and setpixel method of Texture2D... All this worked fine, then i switched to latest Unity3D version. Its hard to explain this because its unthinkable but anyway the puzzles generated look completely different now, its the same project same routine same everything!

How is this possible? Is this for real? Isn't it incredibly stupid to make changes that have effects like these? Does anyone know if something major has changed that i don't know about or something? This REALLY annoys me..

Comment
Add comment · Show 5
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 tanoshimi · Feb 03, 2014 at 07:55 PM 0
Share

Has something major changed? Yes, that's why the major version number changed from 3.x to 4.x....

In fact, there can be some pretty major changes even between $$anonymous$$or version numbers - 4.1, 4.2, and 4.3 all introduced some pretty big changes. But which one explains the change in your code's behaviour is only possible to tell when we see your code...

avatar image Balthatczar · Feb 03, 2014 at 08:04 PM 0
Share

Before i do. Coord 0,0 used to be bottom left corner for a Texture2D image. So for a 256x256 image. 0,256 would the first pixel from a Unity perspective... Has this changed?

avatar image tanoshimi · Feb 03, 2014 at 08:18 PM 0
Share

Assu$$anonymous$$g you're talking about GetPixels, that returns a flattened 2D array where pixels are laid out left to right, bottom to top. So yes, (0,0) is the bottom left corner, as you describe.

avatar image Balthatczar · Feb 03, 2014 at 08:44 PM 0
Share

Yes and SetPixels would work along this same principle i assume right? I know it does in Unity3D 3.5.7, but as it all looks scrambled now i figured something might have changed in that regard.

avatar image Eric5h5 · Feb 03, 2014 at 09:30 PM 0
Share

Nothing changed in that regard. You can look at the release notes for what actually changed.

1 Reply

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

Answer by Balthatczar · Feb 03, 2014 at 09:43 PM

So... figured out the problem, turns out that the public GameObject array holding references to the tiles on which the images are projected weren't lined up in the right order anymore in the inspector once i opened the scene in Unity 4.3.4, had to set them right manually...

Comment
Add comment · Show 4 · 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 unimechanic ♦♦ · Feb 21, 2014 at 11:08 PM 0
Share

If you receive a satisfactory answer to your question please respond it with the solution, that will be very helpful for future reference. Thanks for your comprehension, Unity Support.

avatar image Jamora unimechanic ♦♦ · Feb 21, 2014 at 11:32 PM 0
Share

You know, as moderators, we have the option of converting comments to answers (and vice versa).

avatar image Balthatczar · Feb 22, 2014 at 01:33 AM 0
Share

I'm a little confused, should i remove this answer and post it as comment ins$$anonymous$$d?

avatar image whydoidoit · Feb 22, 2014 at 01:41 AM 0
Share

No you are fine.

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

23 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

Related Questions

Creating random planet textures 3 Answers

Loading a Sprite (Unity 4.3) in resource folder and setting it in sprite renderer 6 Answers

How to show image on Camera View programmatically in Unity3d 1 Answer

How does setting the hideFlags resolve leaking issues? (Texture 2D leaking) 2 Answers

rotate an image by modifying Texture2D.GetPixels32() array 2 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