About Application.isPlaying

It should be noted that Application.isPlaying will be true within a built game. When you want to restrict code to within the Unity Editor play mode and not a built player, use

if(Application.isEditor)
6 Likes

Privacy & Terms