// Update is called once per frame void Update() { if (foregroundTexture == null || backgroundRemovalManager == null) { return; } if (backgroundRemovalManager.GetForegroundTex() == null) { return; } foregroundTexture = backgroundRemovalManager.GetColorTex(); //foregroundTexture = backgroundRemovalManager.GetForegroundTex(); Debug.Log("assigning foreground tex"); }