EyeTrackingDemoUtils.GameObject_ChangeTransparency Method

Definition

Overloads

GameObject_ChangeTransparency(GameObject, Single)

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

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;

public:
 static void GameObject_ChangeTransparency(UnityEngine::GameObject ^ gobj, float newTransparency);
public static void GameObject_ChangeTransparency (UnityEngine.GameObject gobj, float newTransparency);
static member GameObject_ChangeTransparency : UnityEngine.GameObject * single -> unit
Public Shared Sub GameObject_ChangeTransparency (gobj As GameObject, newTransparency As Single)

Parameters

gobj
UnityEngine.GameObject
newTransparency
Single

Applies to

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.

public:
 static void GameObject_ChangeTransparency(UnityEngine::GameObject ^ gobj, float transparency, float % originalTransparency);
public static void GameObject_ChangeTransparency (UnityEngine.GameObject gobj, float transparency, ref float originalTransparency);
static member GameObject_ChangeTransparency : UnityEngine.GameObject * single * single -> unit
Public Shared Sub GameObject_ChangeTransparency (gobj As GameObject, transparency As Single, ByRef originalTransparency As Single)

Parameters

gobj
UnityEngine.GameObject
transparency
Single

Expected values range from 0 (fully transparent) to 1 (fully opaque).

originalTransparency
Single

Input "-1" if you don't know the original transparency yet.

Applies to