Quantcast
Channel: Questions in topic: "unity3.5"
Viewing all articles
Browse latest Browse all 122

Disabling a SkyBox with code

$
0
0
Hey, Sorry this is probably a really basic question - I'm not a programmer, just doing my best to create a AR App. I'm using the Vuforia AR SDK to detect a few targets - one of the targets I want to have a SkyBox on so what I've done is add a skybox to the camera. Obviously this means it's persistent, so I was hoping someone could suggest how I enable it/disable it with code. Below is where I add the code where it detects different targets, is there a way to just set the SkyBox to visible = true/false? switch (component.gameObject.name) { case "Earth": component.gameObject.animation.Play(); component.gameObject.audio.Play(); break; } Any suggestions would be greatly appreciated. Chris

Viewing all articles
Browse latest Browse all 122

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>