O'Reilly logo

Virtual Reality Blueprints by John Williamson, Charles Palmer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a gallery prefab

With the Gallery GameObject's structure completed, we can build out the scene by creating additional galleries. Instead of simply copying and pasting to create new objects, we will convert the initial Gallery GameObject into a prefab. Unity prefabs are GameObject templates that retain the same components and properties as the original object(s). With the traditional copy and paste method, each additional copy is an independent object with no reference to the original. However, prefab GameObjects are instances of the original prefab asset(s) and as such, editing the prefab asset will update prefab instances in the scene.

Prefabs are denoted in the Hierarchy window by blue text and by having a cube-like icon in the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required