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 BlackFoxProductions · Jun 05, 2015 at 01:30 PM · unity 5camerascreeneffect

Picture-in-Picture Effect

Hello! I would just like to know if anybody knows anyway to do a Picture-in-Picture effect. Let me elaborate some. I am creating a game in which the character has a phone, and the idea behind having this phone, is that the phone can be used as a "night vision googles" type thing, but I don't want it to take up the whole screen, I just want it to be in the hand of the character at the bottom of the screen. I can handle the image effects and such to handle the night vision, that's not the problem, I just need to know if there is a relatively simple way to get the screen to show as if it where a second camera. I've made an image to show what I mean in case there is some confusion. ( Yay for horrible MSPaint diagrams! XD)

alt text

Thank you to anyone that attempts to help!

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
8
Best Answer

Answer by tanoshimi · Jun 05, 2015 at 01:32 PM

"As if it were a second camera". So make a second camera! Then set the Viewport Rect of that camera to be, say, X:0, Y:0, W:0.1, H:0.1 to have your phone screen occupy a 10th of the screen spzce, positioned at the bottom left hand corner.

Or, if you want to attach it to a moving object in the game rather than a static "picture-in-picture" effect, render the output of a second camera to a rendertexture, and then apply that texture to the material of your mobile phone screen in the game.

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 BlackFoxProductions · Jun 06, 2015 at 04:28 AM 0
Share

Okay thank you so much! I didn't know Unity had RenderTextures, so i was trying to find a work around XD Thanks!

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

2 People are following this question.

avatar image avatar image

Related Questions

How to "fade out" a scene 6 Answers

Why doesn't my players camera work and why does it spaz out randomly 1 Answer

why my unity games run on android devieces,the screen will be wrong. 0 Answers

Getting following error in outlog when I`d ran my game in Unity? 1 Answer

Unity Screen.height / Screen.dpi is *not* equal to the screens height in real life. 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