Cube Icon shows up on every enable of ARCoreBackground.
It may be a feature, but would be nice if it is an optional one because not every application wants to have this icon when starting ARCore.
VERSIONS USED
Unity: 2018.3.8f1
ARCore SDK for Unity: 1.9.0 (maybe also present earlier > 1.5.0)
STEPS TO REPRODUCE THE ISSUE
Use ARCore SDK for Unity 1.9.0 with Examples HelloAR scene
Add script to scene which disables and enables the ARCoreBackgroundRenderer.
Example script: add to scene, drag and drop ARCoreBackgroundRenderer in inspector.
`
using UnityEngine;
using System.Collections;
using GoogleARCore;
public class EnableDisableLoop : MonoBehaviour
{
public ARCoreBackgroundRenderer arCoreBackgroundRend;
Build scene to device. Note: OnEnable the ViewInARIcon.png shows up in the middle and fades out:
WORKAROUND
Replace the png ViewInARIcon with a transparent pixel (same name required because texture name is hardcoded in ARCoreBackgroundRenderer script). Not a "good" workaround... but fast
Cube Icon shows up on every enable of ARCoreBackground. It may be a feature, but would be nice if it is an optional one because not every application wants to have this icon when starting ARCore.
VERSIONS USED
STEPS TO REPRODUCE THE ISSUE
` using UnityEngine; using System.Collections; using GoogleARCore;
public class EnableDisableLoop : MonoBehaviour { public ARCoreBackgroundRenderer arCoreBackgroundRend;
} `
WORKAROUND
Replace the png ViewInARIcon with a transparent pixel (same name required because texture name is hardcoded in ARCoreBackgroundRenderer script). Not a "good" workaround... but fast