Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

VuforiaRenderer.Instance.VideoBackgroundTexture is null

Discussion in 'Vuforia' started by JackFrankRo, Dec 23, 2019.

  1. JackFrankRo

    JackFrankRo

    Joined:
    Oct 14, 2019
    Posts:
    1
    VuforiaRenderer.Instance is not null; but
    VuforiaRenderer.Instance.VideoBackgroundTexture is null , anybody can help me? I want to get a texture from VuforiaRenderer.Instance.VideoBackgroundTexture.
     
  2. unityuserunity85496

    unityuserunity85496

    Joined:
    Jan 9, 2019
    Posts:
    89
    you need to get it via Vufos callback
    VuforiaARController.Instance.RegisterBackgroundTextureChangedCallback(OnBackgroundTextureChanged);
    OnBackgroundTextureChanged(){
    wheatthins =
    VuforiaRenderer.Instance.VideoBackgroundTexture
    }
     
    Lofit likes this.
  3. Lofit

    Lofit

    Joined:
    Feb 21, 2020
    Posts:
    1
    Thank you very much! That's effective.