unity check if application is running code example
Example: application isPlaying unity
using UnityEngine;class Example : MonoBehaviour
{
void Start()
{
if (Application.isPlaying)
{
print("In player or playmode");
}
}
}