But I’m still asking myself how I could toggle off the render component of a Multitarget Hierarchy child
If you mean you want to turn each individual face off in the MT then this is not possible.
If you mean you have separate children attached to the MT object, then these are controllable by customising the DefaultTrackableEventHandler script in the OnTrackingFound/Lost methods. As shown below, all they do at present is switch the renderer/collider components on/off.
Any Ideas of how i con Toggle on an of some kind of “AR info objects” being attached to the Model with a button
You would need to customise these methods based on finding the "AR Info object" and then activating/deactivating it accordingly.
N
private void OnTrackingFound()
{
Renderer[] rendererComponents = GetComponentsInChildren<Renderer>(true);
Collider[] colliderComponents = GetComponentsInChildren<Collider>(true);
// Enable rendering:
foreach (Renderer component in rendererComponents)
{
component.enabled = true;
}
// Enable colliders:
foreach (Collider component in colliderComponents)
{
component.enabled = true;
}
Debug.Log("Trackable " + mTrackableBehaviour.TrackableName + " found");
}
No problem, we're all learning :)
N