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 Diemer · Mar 27, 2015 at 06:37 AM · camerauiprefabrender

UI doesn`t render if camera is moved by 1000 units

Hi,

i have a UI which looks like this:

 Canvas
 ->Image

I save this UI as prefab and export it as unitypackage. When i import it in another project and put the UI into the scene the camera doesn`t render it. I found out that i have to use SetParent: (Script attached to Canvas)

 transform.SetParent (Camera.main.gameObject.transform, false);

Now the camera renders the UI. My problem is, when i move the camera in the scene far away (1000 units) the camera doesn`t renders it anymore. If i move the camera back the UI appears again.

Is there anything i can do so the problem is fixed ?

Just tested: this problem also appears when i create a new Project, create a new Canvas and an Image in a new Scene. When i press play and move the camera away the UI disappears. I tried to set the Canvas as a child of the MainCamera but it doesn`t help.

Comment
Add comment · Show 1
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 Diemer · Mar 30, 2015 at 12:30 PM 0
Share

Got it. I had to set the canvas to camera overlay.

Tried to set the distance to 2000 at screen overlay but it didn`t changed the "problem". Strange, but well, screen overlay did the trick ty.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by siaran · Mar 27, 2015 at 04:18 PM

have you tried what happens when you increase the camera's far clipping plane? If it happens at 1000 distance it sounds like it may be related to that somehow.

Would be kind of weird if that;s the case though...

Also, is your canvas render mode set to screen overlay, world space, or camera overlay?

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Instantiated UI prefab in canvas does not render image 1 Answer

canvas screen space camera rotation issue 0 Answers

How to set the UI Text position to be relative to his "grandfather" prefab 0 Answers

Broadcast rendered camera through networking. 1 Answer

Models/Prefabs darker in Game Mode 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