/// <summary> /// The Unfade method initiates the headset to change colour back to a transparent colour over a given duration. /// </summary> /// <param name="duration">The time in seconds to take to complete the unfade transition.</param> public virtual void Unfade(float duration) { isFaded = true; isTransitioning = true; VRTK_SDK_Bridge.HeadsetFade(Color.clear, duration); OnHeadsetUnfadeStart(SetHeadsetFadeEvent(transform, duration)); CancelInvoke("FadeComplete"); Invoke("UnfadeComplete", duration); }
private void ReleaseBlink() { VRTK_SDK_Bridge.HeadsetFade(Color.clear, fadeInTime); fadeInTime = 0f; }
protected virtual void Blink(float transitionSpeed) { fadeInTime = transitionSpeed; VRTK_SDK_Bridge.HeadsetFade(Color.black, 0); Invoke("ReleaseBlink", blinkPause); }