上传YomovSDK

This commit is contained in:
Sora丶kong
2026-03-03 03:15:46 +08:00
parent 9096da7e6c
commit eb97f31065
6477 changed files with 1932208 additions and 3 deletions

View File

@@ -0,0 +1,23 @@
namespace UnityEngine.XR.OpenXR.Samples.InterceptFeature
{
/// <summary>
/// Ensures that the intercept feature is enabled and updates the message on screen
/// with the message received from the intercepted xrCreateSession call.
/// </summary>
public class InterceptMessageHandler : MonoBehaviour
{
public TextMesh textMesh;
private void Start()
{
var feature = OpenXRSettings.Instance.GetFeature<InterceptCreateSessionFeature>();
if (feature == null || !feature.enabled)
textMesh.text = "InterceptCreateSession feature not enabled";
else
{
textMesh.text = feature.receivedMessage;
textMesh.color = Color.white;
}
}
}
}