Refresh (repaint) Unity view scripting

Discussions relating to ARToolworks ARToolKit plugin for the Unity 3D game authoring environment and runtime.
josef2172
Posts: 26
Joined: Wed Jun 14, 2017 3:54 pm

Refresh (repaint) Unity view scripting

Postby josef2172 » Mon Jul 17, 2017 10:01 am

Hi,

In my app (iOS) I dismiss the Unity view (stopAR()) and then later I need to go to the Unity view (startAR()). This is working fine. My problem is sometime that the gameObjects somehow are sticked on the camera scene when I get back to the Unity view (same position where the objects initially) and sometime they go away and refresh when the detection of the marker happens (NFT marker). I need to find a way to refresh the Unity view (repaint) when I open the Unity view the second time.

Please let me know if it is unclear.

Thank you for the support and help.

Regards,
Josef

MrDaniel
Posts: 381
Joined: Wed Nov 18, 2015 9:07 pm

Re: Refresh (repaint) Unity view scripting

Postby MrDaniel » Mon Jul 17, 2017 3:58 pm

Hello,

Is this an ARToolkit 5 project? You know 6 has been released and is available on Unity.

Can you describe the process as bullet points and not as one long run on sentence. Sorry, i am not understanding.

Regards,

Daniel

josef2172
Posts: 26
Joined: Wed Jun 14, 2017 3:54 pm

Re: Refresh (repaint) Unity view scripting

Postby josef2172 » Sun Jul 23, 2017 5:33 am

I solved it by iterating over all the Unity Gamobjects in the scene and set them to setActive = false after executing stopAR(). Thanks.


Return to “ARToolKit for Unity”

Who is online

Users browsing this forum: No registered users and 2 guests