Guides
These docs are for v3.0.0. Click to read the latest docs for v3.3.0.

SDK_SimHeadset

extends SDK_BaseHeadset

Overview

The Sim Headset SDK script provides dummy functions for the headset.

Class Methods

GetHeadset/0

public override Transform GetHeadset()

  • Parameters
  • none
  • Returns
  • Transform - A transform of the object representing the headset in the scene.

The GetHeadset method returns the Transform of the object that is used to represent the headset in the scene.

GetHeadsetCamera/0

public override Transform GetHeadsetCamera()

  • Parameters
  • none
  • Returns
  • Transform - A transform of the object holding the headset camera in the scene.

The GetHeadsetCamera/0 method returns the Transform of the object that is used to hold the headset camera in the scene.

HeadsetFade/3

public override void HeadsetFade(Color color, float duration, bool fadeOverlay = false)

  • Parameters
  • Color color - The colour to fade to.
  • float duration - The amount of time the fade should take to reach the given colour.
  • bool fadeOverlay - Determines whether to use an overlay on the fade.
  • Returns
  • none

The HeadsetFade method is used to apply a fade to the headset camera to progressively change the colour.

HasHeadsetFade/1

public override bool HasHeadsetFade(Transform obj)

  • Parameters
  • Transform obj - The Transform to check to see if a camera fade is available on.
  • Returns
  • bool - Returns true if the headset has fade functionality on it.

The HasHeadsetFade method checks to see if the given game object (usually the camera) has the ability to fade the viewpoint.

AddHeadsetFade/1

public override void AddHeadsetFade(Transform camera)

  • Parameters
  • Transform camera - The Transform to with the camera on to add the fade functionality to.
  • Returns
  • none

The AddHeadsetFade method attempts to add the fade functionality to the game object with the camera on it.