Пример #1
0
 /// <summary>
 /// Call this method, when the "render_model_loaded" event is triggered.
 /// </summary>
 /// <param name="args">bool success, SteamVR_RenderModel model</param>
 void OnControllerLoaded(SteamVR_RenderModel renderModel, bool success)
 {
     if (success)
     {
         if (!controllerRenderModels.Exists(renderModelTemp => renderModel.GetHashCode() == renderModelTemp.GetHashCode()))
         {
             controllerRenderModels.Add(renderModel);
         }
         UpdateControllerTexture(TouchPadMenu, renderModel.gameObject.transform);
     }
 }