Document toolboxDocument toolbox

Private & Confidential

v1.3 Example 1 - Basic

For all projects, the IglooManager Prefab must be included in your scene.

On Start, settings are loaded by the IglooManager to configure the camera system and allow the display of your Unity project within an Igloo System or Igloo Preview application.

IglooManager Prefab

Setup

The prefab is located in Assets/Igloo Toolkit\Resources\Prefabs

  • Drag the IglooManager prefab into your scene and position it at the location you want the player to start at.

     

  • Click the Add Spout Resources button on the Igloo Manager component.

    • This will find the Spout Resources asset in the packages system, and add it to the variable.

    • It will also remove the button to add it, when it is allocated.

    • If you do not see either the Spout Resources variable, or the Add Spout Resources button; Klak Spout has not been installed correctly into Scoped Registries, please re-visit the setup page HERE.

Igloo Manager Properties

IglooManager has the following properties

Create On Awake

When enabled the Igloo camera is created on game start, alternatively see the Scripting Reference for how to execute the creation via a script.

Save On Quit

When enabled any Igloo settings changed during runtime are saved on application close or on the destruction of IglooManager.cs

Don’t Destroy On Load

Sets the Igloo System to not be destroyed on Scene change. Be sure to only have one IglooManager in a Scene.

https://docs.unity3d.com/ScriptReference/Object.DontDestroyOnLoad.html

Camera Prefab

This feature is used in Example Scene 5: Camera Prefab

Assigning a camera prefab allows camera effects to be applied to, see the cameraPrefab property of DisplayManager.cs in the Scripting Reference for more information.

Follow Object

Optionally assign a Transform for the camera to follow. By default, only the transform's position is followed and rotation is ignored. This can be changed using the FollowObjectTrasform.cs script attached to the Igloo prefab

Canvas UI

This feature is used in Example Scene 6: UI.

Optional Variable for Igloo 3D UI system; The main canvas used for the UI is assigned to this variable, then passed to the Igloo UI Manager when it is instatiated.

Texture UI

This feature is used in Example Scene 6: UI.

Optional Variable for Igloo 3D UI system; The render texture used for the UI is assigned to this variable, then passed to the Igloo UI Manager when it is instatiated.

Spout Resources

This variable is only visible if Klak Spout is installed via Scoped Registries Package manager.

Spout is the primary way the 360 view is streamed to the Igloo Warper software, and requires various materials and shaders to be included within the build. As it’s an instatiated plugin, these are not included by default, and therefore requires this asset to be assigned to a game object.

We’ve created a button to make this easier, as the asset is difficult to locate as it exists in the packages part of the Content tab, and cannot be searched for.

Press Play!

At this point, you can hit play and a 360 camera array will be generated.

The IglooPreview application can be used to view the output.

(c) Igloo Vision 2020