Прочетете на английски Редактиране

Споделяне чрез


EyeTrackingDemoUtils Class

Definition

General useful utility functions.

C++
public ref class EyeTrackingDemoUtils abstract sealed
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

Продукт Версии
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0