I put the phone on the target (pictures PNG), and video the RAM is loading, I remove from the target - the memory is not cleared. How to unload all content from target?
unity 2018.3.13/xcode 10.1/ last EasyAR SDK basic/ CRS
On Pictures use:
public override void OnTargetLost ()
{
UnLoad ();
}
private void UnLoad ()
{
_texture = null;
Resources.UnloadUnusedAssets ();
}
public override void OnTargetUnload ()
{
UnLoad ();
}
On video:
public override void OnTargetLost ()
{
_mediaPlayer.Stop ();
_mediaPlayer.UnLoad ();
}
public override void OnTargetUnload ()
{
_mediaPlayer.UnLoad ();
}