Editar

Compartir a través de


BlendOut Class

Definition

This script allows for dynamically blending out a target after it has been looked at for a certain amount of time.

public ref class BlendOut : UnityEngine::MonoBehaviour
[UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/BlendOut")]
public class BlendOut : UnityEngine.MonoBehaviour
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/BlendOut")>]
type BlendOut = class
    inherit MonoBehaviour
Public Class BlendOut
Inherits MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
BlendOut
Attributes
UnityEngine.AddComponentMenuAttribute

Constructors

BlendOut()

Methods

Disengage()

Once the user looks away from the hologram, determine whether the user has dwelled at it before. If yes, start blending it out and destroy it if that option was selected. If not, we can still blend it out a little, but keep it alive and visible.

DwellSucceeded()
Engage()

Once the target is looked at, set it to its full "look at transparency" and let's prevent its destruction when being looked at.

Update()

Applies to