public static bool isPlaying ;

Descripción

Returns true when in any kind of player is active.(Read Only).

Devuelve true en el editor de Unity cuando se encuentra en play mode.

using UnityEngine;

class Example : MonoBehaviour { void Start() { if (Application.isPlaying) { print("In player or playmode"); } } }