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 Logophil · Nov 06, 2016 at 10:57 AM · upgrading

camera/minimap problem on upgrading to unity 5.4.2

I have a simple minimap setup using two cameras, with the main camera (depth -1) overlaid by a 'minimap camera' (depth 0) directed at a sprite, whose texture is updated via a script at runtime via spriterenderer.texture.setpixel().

This worked fine for in version 4.7 - the problem is I am finally getting round to upgrading unity from version 4.7 to 5.4.2f and have got everything working fine except the minimap, which is simply not appearing, even though the camera is active with the right screen coordinates, and the texture is being updated with no errors or warnings.

I am stumped as to what could be causing this, I wonder if someone with more experience of the differences between unity 4 and unity 5 will have an idea?

EDIT: I have just confirmed that I get the same problem with Unity 5.0.3f2, 5.2.1f and 5.3.6f1. I have tried changing pretty much all the camera and sprite settings with no luck, but I feel like there could be a very simple fix I am not thinking of.

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
0

Answer by Logophil · Nov 06, 2016 at 07:00 PM

OK, so I actually just managed to solve the problem by a process of trial and error. What I had to do was: a) change the minimap camera 'clear flags' setting from 'don't clear' to 'depth only'. b) change the import settings of my sprite to 'mesh type: full rect'

I gather from the documentation that it is rarely correct to use 'don't clear' so I guess this was sort of a loophole in version 4.7 that 'don't clear' had the same effect as 'depth only'.

I think the key one is (b) - since Unity 4.7 does not include the 'mesh type' import setting, it must have been set to a default option when upgrading, which turned out to be inappropriate ( I still don't really understand what this import setting does, in case anyone would care to add something here).

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

upgrade breaks localScale and prefabs 1 Answer

Upgrading to URP broke my shadows. They appear in the scene but not the game. 1 Answer

do you lose old projects when you upgrade unity? 1 Answer

need help on unity phsyics, rigidbody acts weird after upgrading from unity 4.x to 5.x 0 Answers

How to convert iOS game to unity and use the same load/save highscore files? 0 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