# Prefabs

<iframe allowfullscreen="allowfullscreen" height="314" src="//www.youtube.com/embed/r9l0jaRbL4o" width="560"></iframe>

<span style="color: #969696; font-family: 'Motiva Sans', Arial, Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Prefabs allow for an object and all its components to be saved into a single asset.</span>  
<span style="color: #969696; font-family: 'Motiva Sans', Arial, Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">These are especially useful for things like light fixtures or pickupables! Combine a light source and a 3D model into a prefab! Combine a pickupable, its vrc\_pickup script and its collider(s) into a prefab!</span>

<span style="color: #969696; font-family: 'Motiva Sans', Arial, Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Check out the [Udon prefabs section](https://docs.google.com/spreadsheets/d/e/2PACX-1vTP-eIkYLZh7pDhpO-untxy1zbuoiqdzVP2z5-vg_9ijBW7k8ZC9VP6cVL-ct5yKrySPBPJ6V2ymlWS/pubhtml)<span class="bb_link_host" style="font-size: 10px; color: #7e8391; padding: 4px; top: -1px; font-family: 'Motiva Sans', Arial, Helvetica, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">\[docs.google.com\]</span> of VRCPrefabs. I also recommend [Vowgan’s Collision Sounds](https://vowgan.booth.pm/items/1966582)<span class="bb_link_host" style="font-size: 10px; color: #7e8391; padding: 4px; top: -1px; font-family: 'Motiva Sans', Arial, Helvetica, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">\[vowgan.booth.pm\]</span>, they are incredibly satisfying.  
  
</span>

#### [Day/Night Cycle](https://github.com/Iconoclass/UdonSharpDayNightController)

This is a fork (edit) I made of an Udon system originally made by Nova\_Max. It has the ability to make the directional light (sun) rotate around the world, along with a moon, stars, and changing cubemaps depending on the time of day.