Пример #1
0
        /// <summary>
        /// Trigger the session's update loop.
        /// </summary>
        /// <param name="updateParams">Data needed by the session to perform its update.</param>
        public void Update(XRSessionUpdateParams updateParams)
        {
            currentConfiguration = DetermineConfiguration(requestedFeatures);
            if (currentConfiguration.HasValue)
            {
#if DEVELOPMENT_BUILD || UNITY_EDITOR
                DebugPrintConfigurationChange(currentConfiguration.Value, requestedFeatures);
#endif
                provider.Update(updateParams, currentConfiguration.Value);
            }
            else
            {
                provider.Update(updateParams);
            }
        }
Пример #2
0
 /// <summary>
 /// Perform any per-frame update logic here.
 /// </summary>
 /// <param name="updateParams">Paramters about the current state that may be needed to inform the session.</param>
 public virtual void Update(XRSessionUpdateParams updateParams)
 {
 }
Пример #3
0
 /// <summary>
 /// Trigger the session's update loop.
 /// </summary>
 /// <param name="updateParams">Data needed by the session to perform its update.</param>
 public void Update(XRSessionUpdateParams updateParams)
 {
     m_Provider.Update(updateParams);
 }