Bug : In Unity, PlayFab is doing something in the background that is causing a texture assignment to be lost after about a second.
I have a Start scene and a Star Map scene. The Star Map scene creates a rendertexture and assigns it to a material at runtime, which is drawn onto a quad for an overlay of scanner range.
Start(){ scanRT = new RenderTexture(Screen.width, Screen.height, 0, RenderTextureFormat.ARGB32); scanRT.name = "scannerTexture"; scanCam.targetTexture = scanRT; matScan.mainTexture = scanRT; }
After installing PlayFab, the material loses assignment of the rendertexture after about one second.
If I launch the Star Map scene directly, the texture is lost after about one second. If I launch the Start scene and delay loading of the Star Map scene by 1.2 seconds, the RT remains assigned and it all works correctly. I have just removed PlayFab completely and the Star Map scene works correctly.