- Home /
Mesh renderer turns off on runtime?
Hi,
I've created an app for the HoloLens using Vuforia. In this app, I've got multiple arrows as children of instructions within the ImageTarget. On runtime however the mesh renderer turns off making the objects invisible. If I move the objects from under the parent files they are working.
I just can't seem to find the problem, so if anybody has a bright idea :) Thank you in advance, ~Danny
Answer by Zaeran · Apr 06, 2018 at 01:08 PM
If you open up the Default Tracking script on your ImageTarget, you'll see that the default behaviour is to disable the meshrenderer and colliders of all child objects of your targets. This is because it wants to hide the objects until the marker is detected.
You can modify the script, or create a custom script to overwrite this behaviour.
Thank you, after going trough the script I've been able to solve the problem.
Answer by yashkumarb · Apr 10, 2021 at 07:57 AM
i have modify the script and enable true component but still unity get crash