Hack around initialization
This commit is contained in:
@@ -120,7 +120,6 @@ public class OVRMesh : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
private void Update()
|
||||
{
|
||||
if (OVRInput.IsControllerConnected(OVRInput.Controller.Hands) && !IsInitialized)
|
||||
@@ -131,5 +130,4 @@ public class OVRMesh : MonoBehaviour
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -171,7 +171,6 @@ public class OVRMeshRenderer : MonoBehaviour
|
||||
}
|
||||
}
|
||||
}
|
||||
#if UNITY_EDITOR
|
||||
else
|
||||
{
|
||||
if (OVRInput.IsControllerConnected(OVRInput.Controller.Hands))
|
||||
@@ -179,6 +178,5 @@ public class OVRMeshRenderer : MonoBehaviour
|
||||
Initialize();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -292,7 +292,6 @@ public class OVRSkeleton : MonoBehaviour
|
||||
|
||||
private void Update()
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
if (OVRInput.IsControllerConnected(OVRInput.Controller.Hands) && !IsInitialized)
|
||||
{
|
||||
if (_skeletonType != SkeletonType.None)
|
||||
@@ -300,7 +299,6 @@ public class OVRSkeleton : MonoBehaviour
|
||||
Initialize();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!IsInitialized || _dataProvider == null)
|
||||
{
|
||||
|
||||
@@ -331,7 +331,6 @@ public class OVRSkeletonRenderer : MonoBehaviour
|
||||
_capsuleVisualizations[i].Update(_scale, shouldRender, ShouldUseSystemGestureMaterial, _confidenceBehavior, _systemGestureBehavior);
|
||||
}
|
||||
}
|
||||
#if UNITY_EDITOR
|
||||
else
|
||||
{
|
||||
if (OVRInput.IsControllerConnected(OVRInput.Controller.Hands) && !IsInitialized)
|
||||
@@ -339,7 +338,6 @@ public class OVRSkeletonRenderer : MonoBehaviour
|
||||
Initialize();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
|
||||
Reference in New Issue
Block a user