HOW UNLOAD CONTENT FROM RAM???

0 votes
asked May 26, 2019 by mixx85 (1,000 points)

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 ();

        }

1 Answer

0 votes
answered Jun 6, 2019 by zhnagjian (11,130 points)
Hello,

Is it possible to describe the problem more clearly?

Best wishes!
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...