Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Sergey_Russia on March 22, 2019, 10:55:44 AM

Title: Check Mesh Renderer
Post by: Sergey_Russia on March 22, 2019, 10:55:44 AM
Hello good guys!
I can not figure out how to check through the playmaker whether the flag on Mesh Renderer is on.
And also turn it on and off
https://ibb.co/tQSJdQ6

(https://ibb.co/tQSJdQ6)
Title: Re: Check Mesh Renderer
Post by: djaydino on March 22, 2019, 01:52:02 PM
Hi.
on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181) you can find an action called : component is active

and you can also find : activate component there :)
Title: Re: Check Mesh Renderer
Post by: Sergey_Russia on March 22, 2019, 03:34:58 PM
It is necessary to check the flag on the Mesh Renderer, and not the activity of the object.
I check if the object is displayed in Vuforia, because in Ecosystem Vuforia is not working.
Or I will have to change the built-in Vuforia script.
DefaultTrackableEventHandler.cs
Since he has a visibility check.

if (mTrackableBehaviour.TrackableName == "Name")
{
   Actions
}
Title: Re: Check Mesh Renderer
Post by: Sergey_Russia on March 22, 2019, 03:39:22 PM
https://ibb.co/mTfXgr2
Title: Re: Check Mesh Renderer
Post by: Sergey_Russia on March 23, 2019, 06:05:57 AM
Found a simple solution.
Now everything works!

https://library.vuforia.com/content/vuforia-library/en/articles/Solution/Working-with-Vuforia-and-Unity.html