Search Unity

Question Why do both exist that OnApplicationFocus and OnApplicationPause?

Discussion in 'General Discussion' started by kfs0502, May 16, 2023.

  1. kfs0502

    kfs0502

    Joined:
    Oct 18, 2022
    Posts:
    2
    it looks same functions. the difference is only
    when game started first:
    call OnApplicationFocus(true) // after Awake(), before Start()

    but if it need something when game started first, just do coding at the end of Awake().
     
  2. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    21,205
    Last edited: May 16, 2023
    neginfinity likes this.