Version: 2020.3
言語: 日本語

パラメーター

value Delegate 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 { public XRDisplaySubsystem display;

void OnEnable() { display.displayFocusChanged += HandleFocusChanged; }

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

void HandleFocusChanged(bool focus) { } }