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
3
Question by lritterhh · Jul 09, 2019 at 04:37 PM · videoskybox360-degreesfading

Fade between two 360 video background skyboxes

I want to be able to switch between two Panoramic skyboxes with 360 video on them withan effect where one video fades into the other on command. How would I accomplish this?

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 I_Am_Err00r · Jul 10, 2019 at 09:54 PM

You can do that with the Unity Animator, you will have to create an Animator for the cameras to share, then create a parameter in that Animator to switch between the cameras, and if true then camera 1 is on, and if false then camera 2 is on.

Next, in the timeline you would want to grab both cameras and find out how many seconds you want the fade to be; you would be able to fade to black then fade in the next camera, or just fade directly into the next camera.

If you've never used the Unity Animator, watch this video to get an understanding of what I'm talking about; you could code everything I just said, but this is much easier and offers much more control: https://www.bing.com/videos/search?q=how+to+change+color+of+light+unity+animator&docid=608031440922806201∣=9DC729955C424A2C64229DC729955C424A2C6422&view=detail&FORM=VIREHT

In that video the person shows how to change individual components of objects, you would just change camera's backgroundcolorAlpha to 0 on the fade out and to 1 on the fade in.

I don't know how you plan on calling the switch, but on that command you could put this script on both of your cameras; I don't have access to Unity right now to test this out, but it should work exactly like you want it to.:

 using UnityEngine;
 using System.Collections;
 
 public class SwitchCameras: MonoBehaviour 
 {
 Animator anim;
 bool camera1; 
 
 public Camera camera1;
 public Camera camera2;
 
 void Start()
 {
 anim = GetComponent<Animator>();
 camera1.backgroundColor.alpha = 1;
 camera2.backgroundColor.alpha = 0;
 }
 
 public void SwitchCameras
 {
      camera1= !camera1;
      anim.SetBool ( "SwitchCameras", camera1 );
 }
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

113 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 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 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 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 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

How can I make a menu pop-up after a video is finished playing? 0 Answers

Unity 360 Video not centered. 0 Answers

Hololens 4K 360 Video Possible? 0 Answers

How can I setup a 360 video to play in stereoscopic 3D with the new XR plugin framework? 0 Answers

How to play video with videoplayer from a specific referenced time or frame and not just beginning from the video? 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