CanvasBillboard.Hide C# (CSharp) Method

Hide() public method

Hides the billboard.
public Hide ( float delayInSeconds = 0.0f ) : void
delayInSeconds float
return void
    public void Hide(float delayInSeconds = 0.0f)
    {
        if (canvasGroup != null)
        {
            // Stop currently updating fades.
            if (isFading)
            {
                StopAllCoroutines();
            }

            // start fade
            StartCoroutine(Fade(canvasGroup.alpha, 0.0f, FADE_DURATION_SECONDS, delayInSeconds, OnHideComplete));
        }
    }