Click or drag to resize

LaserTool Class

This example shows how to create a custom script to read input from the controller without the SDK interfering. You could just use ToolPickup on it's own, but we wanted to show you how to read input yourself and use that to switch a laser on and off
Inheritance Hierarchy

Namespace:  ImmerseSDK.Examples
Assembly:  ImmerseSDK.NotInDll (in ImmerseSDK.NotInDll.dll) Version: 3.5.0.0 (3.5.0.0)
Syntax
C#
public class LaserTool : ToolPickup

The LaserTool type exposes the following members.

Constructors
  NameDescription
Public methodLaserTool
Initializes a new instance of the LaserTool class
Top
Methods
Fields
  NameDescription
Private field_laser
Reference to the laser game object we can switch on or off
Top
Extension Methods
  NameDescription
Public Extension MethodGetCopyOf
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.)
Public Extension MethodGetObjectIndex
Gets the index from the IndexedMonoBehaviour
(Defined by GUID.)
Public Extension MethodGetOwner
Gets the owner id from the IndexedMonoBehaviour
(Defined by GUID.)
Public Extension MethodGetOwnerType
Gets the owner type from the IndexedMonoBehaviour
(Defined by GUID.)
Public Extension MethodGetScene
Gets the scene id from the IndexedMonoBehaviour
(Defined by GUID.)
Public Extension MethodWaitForT
Waits for a singleton on a coroutine
(Defined by SingletonManager.)
Top
See Also