Selecting a grabbale object turns off the hand game object (m_ModelGO).
XrbaseController:
public bool hideControllerModel
{
get => m_HideControllerModel;
set
{
m_HideControllerModel = value;
if (m_ModelGO != null)
m_ModelGO.SetActive(!m_HideControllerModel);
}
}
The effect is that every animation of the hand is being stopped.
At first i thought about rewriting those 2 lines and turn off the mesh renderer instead of whole object but u never know where the renderer is placed in the hand prefab structure… ![]()
So
- how about an event instead of deactivation? Il be able to turn off the renderer myself. Execute event if its defined and deactivate if its not defined.
- make XrbaseController: PerformSetup public to make it possible to force reinstantiate the hand model on deselect
i would like to decide on which grabable i should turn off handModel and which not to so… an event would be best.