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 moghes · May 04, 2012 at 01:59 PM · cameraprefabguitextureappear

Can I have a prefab appear on my screen like a gui texture does?

Hello there! I have some objects that I want to appear them on the screen but don't want them to be affected by the main camera. The whole purpose is that, it will appear some models on the side of the screen, and the player will drag them to plot on an another object. first I would use the image of my models as gui textures, but I want them in 3d, beacuase i'll rotate them around themselves untill the user grabs it. What might be a solution to this?

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 hijinxbassist · May 04, 2012 at 05:40 PM 1
Share

@moghes I tried this for the first time last week. I only have one object, but it does the same basic things you want. I ended up parenting a placement GO to the main camera. Then spawn an instance of my model at the placement. This may be tough will lots of objects, and it takes some time fiddling with the actual placement.

The better solution would be to have another camera that renders those objects to the main screen. Im not entirely sure how to do this, though im sure a little searching will provide the answers you would need. You will run into problems with the click drag portion in that case tho.

avatar image moghes · May 30, 2012 at 11:04 PM 0
Share

@hijinxbassist thank you, finally I solved everything! and concerning the drag and drop, you were right, it bothered me, but in my game, I am destroying my prefab and Instantiating a similar one at the mouse position and setting its layer to the default layer, also I had to use WorldToScreenPoint in the secondary layer and ScreenToWorldPoint to plot again in the default layer

1 Reply

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

Answer by moghes · May 30, 2012 at 11:04 PM

I resolved this issue with the help of hijinxbassist, so i'll explain for others who search for this problem. here's the steps: - click on the prefab that you want to appear on the top of everything else - go to the inspector and add a layer and call it "topLayer" or anything you wish - set the layer of your prefab to "topLayer" or the one you added. - create an another camera and in the inspector . set the 'Clear flags' to depth only . open the 'Culling Mask' drop down and tick besides the "topLayer" . set the depth to 1 since the main camera has a depth of 0 - just above the depth, set the position and size of the camera that you want it to appear on the top of the main camera view. - If your prefab appears also from the main camera, you can simply change the culling mask of the main camera by deselecting the layer you want to appear.

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

Multiplying GUIs 0 Answers

iPhone GUI Texture (TouchPad prefab) not working 2 Answers

Triggering Main Camera Script with GUITexture 1 Answer

GuiTexture and Split Screen 1 Answer

Camera problems 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