Reader small image

You're reading from  Enhancing Virtual Reality Experiences with Unity 2022

Product typeBook
Published inNov 2023
Reading LevelBeginner
PublisherPackt
ISBN-139781804619537
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Steven Antonio Christian
Steven Antonio Christian
author image
Steven Antonio Christian

Steven Christian is an Augmented Reality Developer, Animator, and Medical Student Student. He's also the Owner of Iltopia Studios where he creates comics and cartoons that explore the Black experience in America. He is Unity Certified 3D Artist and Instructor and his goal is to improve equity in arts and technology through content creation and community-focused education.
Read more about Steven Antonio Christian

Right arrow

Adding light switches

We can provide a workaround to have high-quality lights and great performance while also limiting the number of lights that are turned on within a certain proximity. We can do that by creating a system where we press a light switch, and in doing so, turn off the lights that are within a specified distance of that light switch. Therefore, we’re able to simulate a somewhat realistic experience of only having lights on that are turned on by us and turning off the lights that are not.

To create a light switch to place on the walls, go through the following steps:

  1. Create an empty GO as a child of ArtGallery.
  2. Name it LightSwitches.
  3. Create another empty GO in LightSwitches.
  4. Name it LightSwitch.
  5. Create a cube as a child of the LightSwitch GO.
  6. Name it SwitchBody.
  7. Set the Y position to .05. Set the X scale to .5. Set the Y scale to .1. Set the Z scale to .5.
  8. Give the cube a DarkGray_Standard material.
  9. Create a cylinder and...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Enhancing Virtual Reality Experiences with Unity 2022
Published in: Nov 2023Publisher: PacktISBN-13: 9781804619537

Author (1)

author image
Steven Antonio Christian

Steven Christian is an Augmented Reality Developer, Animator, and Medical Student Student. He's also the Owner of Iltopia Studios where he creates comics and cartoons that explore the Black experience in America. He is Unity Certified 3D Artist and Instructor and his goal is to improve equity in arts and technology through content creation and community-focused education.
Read more about Steven Antonio Christian