Version: 2022.3
언어: 한국어
public bool enabled ;

설명

Sets or retrieves the enabled status of this gyroscope.

using UnityEngine;

public class Example : MonoBehaviour { bool enableTilt;

void OnGUI() { if (Input.gyro.enabled) { GUILayout.Toggle(enableTilt, "Enable tilt control"); }

// Other GUI elements... } }