Bearbeiten

Freigeben über


EyeTrackingDemoUtils Class

Definition

General useful utility functions.

public ref class EyeTrackingDemoUtils abstract sealed
public static class EyeTrackingDemoUtils
type EyeTrackingDemoUtils = class
Public Class EyeTrackingDemoUtils
Inheritance
EyeTrackingDemoUtils

Methods

GameObject_ChangeColor(GameObject, Color, Nullable<Color>, Boolean)

Change the color of game object "gobj".

GameObject_ChangeTransparency(GameObject, Single, Single)

Change the transparency of game object "gobj" with a transparency value between 0 and 255 with the option to receive the original transparency value back.

GameObject_ChangeTransparency(GameObject, Single)

Change the transparency of game object "gobj" with a transparency value between 0 and 1;

GetFullName(GameObject, Boolean)

Returns the full name of a given GameObject in the scene graph.

GetFullName(GameObject)

Returns the full name of a given GameObject in the scene graph.

GetValidFilename(String)

Returns a correctly formatted filename removing invalid characters if necessary.

LoadNewScene(String, Single)

Loads a Unity scene with the given name after a given delay in seconds.

LoadNewScene(String)

Loads a Unity scene with the given name.

Normalize(Single, Single, Single)

Normalize the given value based on the provided min and max values.

RandomizeListOrder<T>(T[])

Shuffles the entries in a given array and returns the shuffled array.

VisAngleInDegreesToMeters(Single, Single)

Computes the metric size (in meters) for a given visual angle size.

VisAngleInDegreesToMeters(Vector3, Single)

Returns the metric size in meters of a given Vector3 in visual angle in degrees and a given viewing distance in meters.

Applies to