Application.isPlayingstatic var isPlaying : booleanDescriptionReturns true when in any kind of player (Read Only). Returns true in the Unity editor when in play mode.
JavaScript
if (Application.isPlaying) { using UnityEngine; import UnityEngine |
