Version: 2019.4

パラメーター

valueDelegate method to call when the event is sent.

説明

Event sent when XR display focus changes.

This event is sent on the main thread.

using UnityEngine;
using UnityEngine.XR;

public class ExampleClass : MonoBehaviour { void OnEnable() { XRDisplaySubsystem.displayFocusChanged += HandleFocusChanged; }

void OnDisable() { XRDisplaySubsystem.displayFocusChanged -= HandleFocusChanged; }

void HandleFocusChanged(bool focus) { } }