Manual

Orientation Detector

Code examples to perform various interactions with the OrientationDetector

Check Device Orientation

Check the current orientation and updates it if it changed. This method is called automatically by the OrientationDetector.

using Doozy.Engine.Orientation;
using UnityEngine;

public class ExampleClass : MonoBehaviour
{
    private void Start()
    {
        OrientationDetector.Instance.CheckDeviceOrientation();
    }
}